diff options
| author | Jfriedli | 2021-03-18 09:25:11 +0100 |
|---|---|---|
| committer | Jfriedli | 2021-03-18 09:25:11 +0100 |
| commit | 170d77b3ecb2d0c5c35263a2f5598002af599a43 (patch) | |
| tree | 96cc9e252270e97163b535d7efe7623fc59964f8 /postcss.config.js | |
| parent | 9a0a693c5467c245c9cae4245da7291b2799b2ef (diff) | |
installed tailwind and removed old css/js
Diffstat (limited to '')
| -rw-r--r-- | postcss.config.js | 14 |
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 @@ | |||
| 1 | const path = require('path'); | ||
| 2 | |||
| 3 | module.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 | ||
