hxlniada / webpack-concat-plugin

a plugin to help webpack to concat file and inject to html
https://github.com/hxlniada/webpack-concat-plugin
97 stars 55 forks source link

contenthash does not work. hash changes every time #76

Closed govindrai closed 4 years ago

govindrai commented 5 years ago

webpack's [contenthash] functionality doesn't work in this plugin. And the provided hash functionality generates a different hash everytime. This is not good for caching. Am I doing something wrong? Or is this how it is?

erichstark commented 5 years ago

@govindrai try to use shorter hash. It looks like its working for me with [hash:8] and [contenthash:8]