-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpostcss.config.cjs
More file actions
31 lines (29 loc) · 725 Bytes
/
postcss.config.cjs
File metadata and controls
31 lines (29 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// const purgecss = require("@fullhuman/postcss-purgecss")({
// content: ["./src/**/*.svelte"],
// safelist: [/svelte-/],
// defaultExtractor: (content) => content.match(/[A-Za-z0-9-_:/]+/g) || [],
// });
const production = !process.env.ROLLUP_WATCH;
module.exports = {
plugins: [
require("postcss-import")(),
require("tailwindcss"),
require("autoprefixer"),
require("postcss-nesting"),
...(production
? [
// purgecss,
require("cssnano")({
preset: [
"default",
{
discardComments: {
removeAll: true,
},
},
],
}),
]
: []),
],
};