-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.prod.js
32 lines (32 loc) · 1012 Bytes
/
webpack.config.prod.js
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
32
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
loader: "postcss-loader",
options: {
ident: "postcss",
syntax: "postcss-scss",
plugins: () => [
require("postcss-import"),
require("tailwindcss"),
require("autoprefixer"),
require("@fullhuman/postcss-purgecss")({
// Specify the paths to all of the template files in your project
content: [
"./projects/components/src/**/*.html",
"./projects/components/src/**/*.ts",
"./src/**/*.html",
"./src/**/*.ts"
// etc.
],
// Include any special characters you're using in this regular expression
defaultExtractor: content =>
content.match(/[A-Za-z0-9-_:/]+/g) || []
})
]
}
}
]
}
};