parent
8f5163e6bf
commit
5c3225c33c
|
@ -27,6 +27,7 @@ Encore.cleanupOutputBeforeBuild()
|
||||||
})
|
})
|
||||||
.enableSourceMaps(!Encore.isProduction());
|
.enableSourceMaps(!Encore.isProduction());
|
||||||
|
|
||||||
|
if (Encore.isProduction()) {
|
||||||
Encore.addPlugin(
|
Encore.addPlugin(
|
||||||
new PurgecssPlugin({
|
new PurgecssPlugin({
|
||||||
paths: glob.sync([
|
paths: glob.sync([
|
||||||
|
@ -40,5 +41,6 @@ Encore.addPlugin(
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = Encore.getWebpackConfig();
|
module.exports = Encore.getWebpackConfig();
|
||||||
|
|
Reference in a new issue