blob: f62884a1aa86ab8f4d2a08616e05155aad542d82 (
plain)
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
|
const themeDir = __dirname + '/../../../';
module.exports = {
plugins: [
require('postcss-import')({
path: [themeDir]
}),
require('tailwindcss')(themeDir + 'assets/css/tailwind.config.js'),
// Configuration of purgecss for Tailwindcss
// see https://tailwindcss.com/docs/controlling-file-size/#setting-up-purgecss
require('@fullhuman/postcss-purgecss')({
// Specify the paths to all of the template files in your project
content: [
themeDir + 'layouts/**/*.html',
themeDir + 'exampleSite/content/**/*.html',
'layouts/**/*.html',
'content/**/*.html',
'content/**/*.md',
'**/*.md',
],
// Include any special characters you're using in this regular expression
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
fontFace: true,
whitelistPatternsChildren: [/article/]
}),
require('autoprefixer')({
grid: true
}),
]
}
|