vuejs-templates/webpack

vendor.js hash value changes after component modification

開放

#1,270 建立於 2018年1月24日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (4,466 個分叉)batch import
help wanted

倉庫指標

星標
 (9,721 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南