1 | import log from './log'
|
2 |
|
3 | export function validateConfig(config) {
|
4 | if (config.content.files.length === 0) {
|
5 | log.warn('content-problems', [
|
6 | 'The `content` option in your Tailwind CSS configuration is missing or empty.',
|
7 | 'Configure your content sources or your generated CSS will be missing styles.',
|
8 | 'https://tailwindcss.com/docs/content-configuration',
|
9 | ])
|
10 | }
|
11 |
|
12 | return config
|
13 | }
|