summaryrefslogtreecommitdiff
path: root/postcss.config.js
diff options
context:
space:
mode:
authorJfriedli2021-03-18 09:25:11 +0100
committerJfriedli2021-03-18 09:25:11 +0100
commit170d77b3ecb2d0c5c35263a2f5598002af599a43 (patch)
tree96cc9e252270e97163b535d7efe7623fc59964f8 /postcss.config.js
parent9a0a693c5467c245c9cae4245da7291b2799b2ef (diff)
installed tailwind and removed old css/js
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