summaryrefslogtreecommitdiff
path: root/postcss.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'postcss.config.js')
-rw-r--r--postcss.config.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/postcss.config.js b/postcss.config.js
new file mode 100644
index 0000000..29569d9
--- /dev/null
+++ b/postcss.config.js
@@ -0,0 +1,14 @@
1const path = require('path');
2
3module.exports = (ctx) => ({
4 plugins: [
5 require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')),
6 require('autoprefixer'),
7 ctx.env === 'production' && require('@fullhuman/postcss-purgecss')({
8 content: [
9 path.resolve(__dirname, 'templates/**/*.html')
10 ],
11 defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
12 })
13 ]
14}) \ No newline at end of file