vuejs-templates/webpack

vendor.js hash value changes after component modification

Open

#1270 aperta il 24 gen 2018

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (4466 fork)batch import
help wanted

Metriche repository

Star
 (9721 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Reproduction link

https://github.com/iCodeBIT/vendorHashTest

Steps to reproduce

  1. Delete a .vue file in /src/components directory, like Hello2.vue.
  2. npm run build;
  3. 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?

Guida contributor