alexpalombaro / modernizr-webpack-plugin

Compile custom modernizr build during webpack compile
MIT License
46 stars 18 forks source link

[hash] vs [chunkhash] #19

Closed TigerC10 closed 7 years ago

TigerC10 commented 7 years ago

Looks like modernizr-webpack-plugin does not adhere to webpack naming conventions for filename string substitution. Per webpack conventions:

[hash] - build hash [chunkhash] - file hash

At present, modernizr-webpack-plugin only supports filename string substitution [hash], but instead provides a chunkhash instead of using the build's hash (#6). It would be great if modernizr-webpack-plugin could get behind the webpack naming conventions and use [chunkhash] instead of [hash] for current functionality (as well as offer the correct [hash] string subtitution functionality).

alexpalombaro commented 7 years ago

Merged fix from pull request