UNPKG

782 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", {
3 value: true
4});
5Object.defineProperty(exports, "validateConfig", {
6 enumerable: true,
7 get: ()=>validateConfig
8});
9const _log = /*#__PURE__*/ _interopRequireDefault(require("./log"));
10function _interopRequireDefault(obj) {
11 return obj && obj.__esModule ? obj : {
12 default: obj
13 };
14}
15function validateConfig(config) {
16 if (config.content.files.length === 0) {
17 _log.default.warn("content-problems", [
18 "The `content` option in your Tailwind CSS configuration is missing or empty.",
19 "Configure your content sources or your generated CSS will be missing styles.",
20 "https://tailwindcss.com/docs/content-configuration"
21 ]);
22 }
23 return config;
24}