parent
78326d6fd5
commit
73a7a80a33
|
@ -15,8 +15,7 @@ class TailwindExtractor {
|
|||
}
|
||||
}
|
||||
|
||||
Encore
|
||||
.cleanupOutputBeforeBuild()
|
||||
Encore.cleanupOutputBeforeBuild()
|
||||
.setOutputPath('source/build/')
|
||||
.setPublicPath('/build')
|
||||
.enableLessLoader()
|
||||
|
@ -27,22 +26,19 @@ Encore
|
|||
path: 'postcss.config.js'
|
||||
};
|
||||
})
|
||||
.enableSourceMaps(!Encore.isProduction())
|
||||
;
|
||||
.enableSourceMaps(!Encore.isProduction());
|
||||
|
||||
// PurgeCSS
|
||||
Encore.addPlugin(
|
||||
new PurgecssPlugin({
|
||||
paths: glob.sync([
|
||||
path.join(__dirname, "source/**/*.{twig,html,md}")
|
||||
]),
|
||||
extractors: [
|
||||
{
|
||||
extractor: TailwindExtractor,
|
||||
extensions: ['twig', 'html', 'md']
|
||||
}
|
||||
]
|
||||
})
|
||||
);
|
||||
// Encore.addPlugin(new PurgecssPlugin({
|
||||
// paths: glob.sync([
|
||||
// path.join(__dirname, "source/**/*.{twig,html,md}")
|
||||
// ]),
|
||||
// extractors: [
|
||||
// {
|
||||
// extractor: TailwindExtractor,
|
||||
// extensions: ['twig', 'html', 'md']
|
||||
// }
|
||||
// ]
|
||||
// }));
|
||||
|
||||
module.exports = Encore.getWebpackConfig();
|
||||
|
|
Reference in a new issue