forked from SimonGenin/OWL-Devtools-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostcss.config.js
More file actions
22 lines (19 loc) · 757 Bytes
/
postcss.config.js
File metadata and controls
22 lines (19 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const isProduction = process.env.NODE_ENV === "production";
module.exports = {
plugins: [
require("postcss-preset-env"),
require("postcss-import"),
require("autoprefixer"),
require("postcss-nested"),
...(isProduction
? [
require("@fullhuman/postcss-purgecss")({
// Specify the paths to all of the template files in your project
content: ["./public/index.html", "./src/**/*.xml"],
// Include any special characters you're using in this regular expression
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
}),
]
: []),
],
};