mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-14 05:53:01 +01:00
8d5f3c8bab
Download all the jsDelivr stuff, and use Parcel to compact it
22 lines
No EOL
421 B
JavaScript
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
|
|
}; |