tailwind.config.js 731 B

1234567891011121314151617181920212223
  1. const baseConfig = require('./client/tailwind.config');
  2. /**
  3. * Tailwind config file for Wagtail itself.
  4. */
  5. module.exports = {
  6. presets: [baseConfig],
  7. content: [
  8. './wagtail/**/*.{py,html,ts,tsx}',
  9. './wagtail/**/static_src/**/*.js',
  10. // Make sure NOT to include the `client/scss` directory,
  11. // even if we don't specify `*.scss` files here.
  12. // The directory would still be scanned for files, which would cause
  13. // the styles to rebuild in a loop.
  14. // https://tailwindcss.com/docs/content-configuration#styles-rebuild-in-an-infinite-loop
  15. './client/src/**/*.{js,ts,tsx,mdx}',
  16. './docs/**/*.{md,rst}',
  17. ],
  18. corePlugins: {
  19. // Risk of clashing with existing styles.
  20. preflight: false,
  21. },
  22. };