parent
8f5163e6bf
commit
5c3225c33c
|
@ -27,7 +27,8 @@ Encore.cleanupOutputBeforeBuild()
|
||||||
})
|
})
|
||||||
.enableSourceMaps(!Encore.isProduction());
|
.enableSourceMaps(!Encore.isProduction());
|
||||||
|
|
||||||
Encore.addPlugin(
|
if (Encore.isProduction()) {
|
||||||
|
Encore.addPlugin(
|
||||||
new PurgecssPlugin({
|
new PurgecssPlugin({
|
||||||
paths: glob.sync([
|
paths: glob.sync([
|
||||||
path.join(__dirname, "output_*/**/*.html"),
|
path.join(__dirname, "output_*/**/*.html"),
|
||||||
|
@ -39,6 +40,7 @@ Encore.addPlugin(
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = Encore.getWebpackConfig();
|
module.exports = Encore.getWebpackConfig();
|
||||||
|
|
Loading…
Reference in a new issue