hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

Should an added dependency clear cache?

Open vidartf opened this issue 7 years ago • 0 comments

I'm just exploring using this plugin for optimizing a webpack rebuild. This is for rebuilding an application after the install/uninstall of extensions to the application. As far as I understand hard-source, if you change the version of a dependency, you have to clear the cache (makes sense). However, I'm thinking that if you purely add a dependency, without any packages being updated, the cache could be retained.

Question 1: It that assumption correct (adding dependencies should be ok)? Question 2: If so, what can I set the environment hash to in order to use this?

vidartf avatar Nov 30 '18 22:11 vidartf