atlas/tools/ci/postcss.config.js
Hans5958 8d5f3c8bab Add build script
Download all the jsDelivr stuff, and use Parcel to compact it
2022-04-28 13:10:22 +00:00

22 lines
No EOL
421 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/**/*.js',
'./dist-temp/*.svg',
'./dist-temp/**/*.svg'
]
})
);
}
module.exports = {
plugins: plugins
};