mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-10 12:07:30 +01:00
22 lines
421 B
JavaScript
22 lines
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
|
||
|
};
|