Closed IAMtheIAM closed 8 years ago
It is necessary to add resolveExtensions: ['.html'],
to the plugin object, like this.
new PurifyCSSPlugin({
basePath: helpers.paths.root,
paths: [
"/src/app-components/**/*.template.html",
"/src/app-components/**/*.component.ts",
],
resolveExtensions: ['.html'],
purifyOptions: {
minify: true,
info: true,
output: 'wwwroot/css/purified',
rejected: true,
// whitelist: []
}
}),
Now.
PurifyCSS has reduced the file size by ~85.0%
PurifyCSS has reduced the file size by ~67.6%
See : https://github.com/purifycss/purifycss-webpack-plugin/issues/55#issuecomment-248354694
I am having trouble getting it working. My config:
I modified the plugin so it tells me which css assets it detects. It finds 2 css bundles as it should. But then it does nothing to them.
Why is it not purifying them?