From 170d77b3ecb2d0c5c35263a2f5598002af599a43 Mon Sep 17 00:00:00 2001 From: Jfriedli Date: Thu, 18 Mar 2021 09:25:11 +0100 Subject: installed tailwind and removed old css/js --- postcss.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 postcss.config.js (limited to 'postcss.config.js') 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 @@ +const path = require('path'); + +module.exports = (ctx) => ({ + plugins: [ + require('tailwindcss')(path.resolve(__dirname, 'tailwind.config.js')), + require('autoprefixer'), + ctx.env === 'production' && require('@fullhuman/postcss-purgecss')({ + content: [ + path.resolve(__dirname, 'templates/**/*.html') + ], + defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || [] + }) + ] +}) \ No newline at end of file -- cgit v1.3