validateConfig.js 782 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. Object.defineProperty(exports, "validateConfig", {
  6. enumerable: true,
  7. get: ()=>validateConfig
  8. });
  9. const _log = /*#__PURE__*/ _interopRequireDefault(require("./log"));
  10. function _interopRequireDefault(obj) {
  11. return obj && obj.__esModule ? obj : {
  12. default: obj
  13. };
  14. }
  15. function 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. }