atlas/tools/ci/postcss.config.js
2022-07-30 23:33:56 +02:00

21 lines
No EOL
392 B
JavaScript

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