mirror of
https://github.com/placeAtlas/atlas.git
synced 2025-01-01 04:34:35 +01:00
Simplify postcss.config.js
This commit is contained in:
parent
81c81d9890
commit
4809187054
1 changed files with 6 additions and 9 deletions
|
@ -1,17 +1,14 @@
|
|||
const plugins = [];
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
plugins.push(
|
||||
require("@fullhuman/postcss-purgecss")({
|
||||
plugins.push({
|
||||
"@fullhuman/postcss-purgecss": {
|
||||
content: [
|
||||
'./dist-temp/*.html',
|
||||
'./dist-temp/**/*.html',
|
||||
'./dist-temp/**/*.js',
|
||||
'./dist-temp/*.svg',
|
||||
'./dist-temp/**/*.svg'
|
||||
'./dist-temp/*.{html,js,svg}',
|
||||
'./dist-temp/**/*.{html,js,svg}'
|
||||
]
|
||||
})
|
||||
);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Reference in a new issue