mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-17 12:24:55 +00:00
Webpack template with tailwind and now.sh
This commit is contained in:
16
postcss.config.js
Normal file
16
postcss.config.js
Normal 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] : [])
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user