Repository to troubleshoot Webpack unstable moduleId issue Discuss thread
When I update any devDependencies that is used by Webpack, e.g. babel-loader, css-loader, JS files will have a different hash. It invalidates long-term caching.
- Run
npm install
- Run
npm build
- Change
"css-loader": "=6.9.1"
to"css-loader": "=6.10.0"
and runnpm install
andnpm build
again
You will see JS filenames are changed.
I have also tried to change "css-loader": "=6.9.1"
to "css-loader": "=6.9.0"
. The JS filenames will change too.