Fix PostCSS config, convert files to tab

This commit is contained in:
Hans5958 2023-03-22 21:42:43 +07:00
parent 018ecf2e31
commit c0ad176519
3 changed files with 46 additions and 48 deletions

View file

@ -1,15 +1,13 @@
const plugins = []; const plugins = [];
if (process.env.NODE_ENV === "production") { if (process.env.NODE_ENV === "production") {
plugins.push({ plugins["@fullhuman/postcss-purgecss"] = {
"@fullhuman/postcss-purgecss": {
content: [ content: [
'./dist-temp/*.{html,js,svg}', './dist-temp/*.{html,js,svg}',
'./dist-temp/**/*.{html,js,svg}' './dist-temp/**/*.{html,js,svg}'
] ]
} }
}) }
}
module.exports = { module.exports = {
plugins plugins