size-plugin
size-plugin copied to clipboard
For some reason [chunkhash] is not replaced for css files
For some reason [chunkhash] is not replaced for css files. And that causes this issue for me https://github.com/GoogleChromeLabs/size-plugin/issues/17

@smashercosmo Need a bit more info to debug this - how are you generating the CSS files? If you're using a plugin like extract-text-plugin or mini-css-extract-plugin, can you paste the plugin options you're using?
Also it'd be helpful to know if you have any output options set in your webpack configuration.
Cheers.
@developit This happens because stripHash fails the regex check for css files as it uses top level output.filename/output.chunkFilename and mini-css-extract-plugin defines it's own filenameTemplate (check here)