source: frontend/node_modules/tailwindcss/src/util/validateConfig.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 888 bytes
Line 
1import log from './log'
2
3export 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 // Warn if the line-clamp plugin is installed
13 try {
14 let plugin = require('@tailwindcss/line-clamp')
15 if (config.plugins.includes(plugin)) {
16 log.warn('line-clamp-in-core', [
17 'As of Tailwind CSS v3.3, the `@tailwindcss/line-clamp` plugin is now included by default.',
18 'Remove it from the `plugins` array in your configuration to eliminate this warning.',
19 ])
20
21 config.plugins = config.plugins.filter((p) => p !== plugin)
22 }
23 } catch {}
24
25 return config
26}
Note: See TracBrowser for help on using the repository browser.