forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
27 lines (25 loc) · 842 Bytes
/
tailwind.config.js
File metadata and controls
27 lines (25 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import baseConfig from './client/tailwind.config';
/**
* Tailwind config file for Wagtail itself.
* @see https://v3.tailwindcss.com/docs/configuration
* @type {import('tailwindcss').Config}
*/
const config = {
presets: [baseConfig],
content: [
'./wagtail/**/*.{py,html,ts,tsx}',
'./wagtail/**/static_src/**/*.js',
// Make sure NOT to include the `client/scss` directory,
// even if we don't specify `*.scss` files here.
// The directory would still be scanned for files, which would cause
// the styles to rebuild in a loop.
// https://tailwindcss.com/docs/content-configuration#styles-rebuild-in-an-infinite-loop
'./client/src/**/*.{js,ts,tsx,mdx}',
'./docs/**/*.{md,rst}',
],
corePlugins: {
// Risk of clashing with existing styles.
preflight: false,
},
};
export default config;