This repository has been archived on 2020-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-05 04:10:52 +00:00
|
|
|
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',
|
|
|
|
],
|
|
|
|
// Include any special characters you're using in this regular expression
|
2020-03-08 00:58:32 +00:00
|
|
|
defaultExtractor: content => content.match(/[A-Za-z0-9-_:\/]+/g) || [],
|
2020-03-05 04:10:52 +00:00
|
|
|
fontFace: true
|
|
|
|
}),
|
|
|
|
require('autoprefixer')({
|
|
|
|
grid: true
|
|
|
|
}),
|
|
|
|
require('postcss-reporter'),
|
|
|
|
]
|
|
|
|
}
|