size-plugin icon indicating copy to clipboard operation
size-plugin copied to clipboard

For some reason [chunkhash] is not replaced for css files

Open smashercosmo opened this issue 6 years ago • 2 comments

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

Screen Shot 2019-07-24 at 15 38 56

smashercosmo avatar Jul 24 '19 12:07 smashercosmo

@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 avatar Aug 14 '19 00:08 developit

@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)

kuldeepkeshwar avatar Nov 12 '19 10:11 kuldeepkeshwar