-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
41 lines (36 loc) · 941 Bytes
/
tailwind.config.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// @see https://tailwindcss.com/docs/configuration
// Standard lib.
import { join as joinPath } from 'path';
// Local modules.
import {
INPUT_DIRECTORY,
PRODUCTION,
} from './lib/constants';
// Constants.
// @see https://www.11ty.io/docs/languages/
const ELEVENTY_TEMPLATE_LANGUAGES = [
'html', 'md', '11ty.js', 'liquid', 'njk', 'hbs', 'mustache', 'ejs', 'haml', 'pug', 'jstl',
];
// Exports.
module.exports = {
// @see https://tailwindcss.com/docs/optimizing-for-production#writing-purgeable-html
purge: {
content: [joinPath(INPUT_DIRECTORY, `**/*.{${ELEVENTY_TEMPLATE_LANGUAGES}}`)],
enabled: PRODUCTION,
mode: 'all', // Remove all unused styles, not just Tailwinds'.
options: {
fontFace: true,
keyframes: true,
safelist: [],
variables: true,
},
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};