parent
8f5163e6bf
commit
5c3225c33c
|
@ -27,18 +27,20 @@ Encore.cleanupOutputBeforeBuild()
|
||||||
})
|
})
|
||||||
.enableSourceMaps(!Encore.isProduction());
|
.enableSourceMaps(!Encore.isProduction());
|
||||||
|
|
||||||
Encore.addPlugin(
|
if (Encore.isProduction()) {
|
||||||
new PurgecssPlugin({
|
Encore.addPlugin(
|
||||||
paths: glob.sync([
|
new PurgecssPlugin({
|
||||||
path.join(__dirname, "output_*/**/*.html"),
|
paths: glob.sync([
|
||||||
]),
|
path.join(__dirname, "output_*/**/*.html"),
|
||||||
extractors: [
|
]),
|
||||||
{
|
extractors: [
|
||||||
extractor: TailwindExtractor,
|
{
|
||||||
extensions: ['twig', 'html', 'md']
|
extractor: TailwindExtractor,
|
||||||
}
|
extensions: ['twig', 'html', 'md']
|
||||||
]
|
}
|
||||||
})
|
]
|
||||||
);
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = Encore.getWebpackConfig();
|
module.exports = Encore.getWebpackConfig();
|
||||||
|
|
Reference in a new issue