vuejs-templates/webpack
View on GitHubvendor.js hash value changes after component modification
Open
#1,270 opened on Jan 24, 2018
help wanted
Repository metrics
- Stars
- (9,721 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Reproduction link
https://github.com/iCodeBIT/vendorHashTest
Steps to reproduce
- Delete a .vue file in /src/components directory, like Hello2.vue.
- npm run build;
- After building, we can see from "git status" that a new vendor.js is generated.
What is expected?
The hash value of vendorjs should NOT change.
What is actually happening?
The hash value of vendorjs has changed.
The project is generated from vue-template/webpack. In my point of view, vendorjs is extracted from node_modules, modifications in /src/components should not affect vendorjs. Is there anything wrong with the webpack config?