Webpack template with tailwind and now.sh

This commit is contained in:
2019-06-24 22:37:03 +01:00
parent 61bed7ccf4
commit fd99a131df
7 changed files with 70 additions and 3 deletions

16
postcss.config.js Normal file
View File

@@ -0,0 +1,16 @@
const tailwindcss = require("tailwindcss");
// only needed if you want to purge
const purgecss = require("@fullhuman/postcss-purgecss")({
content: ["./src/**/*.svelte", "./src/**/*.html"],
defaultExtractor: content => content.match(/[A-Za-z0-9-_:/]+/g) || []
});
module.exports = {
plugins: [
tailwindcss("./tailwind.config.js"),
// only needed if you want to purge
...(process.env.NODE_ENV === "production" ? [purgecss] : [])
]
}