Skip to content

Commit

Permalink
fix: ensure consistent build hash with different project locations
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 7, 2018
1 parent a0179ce commit 9e4d62c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -75,6 +75,7 @@
"fs-monkey": "0.3.1",
"babel-core": "7.0.0-bridge.0",
"vue": "2.5.17",
"vue-loader": "15.3.0",
"vue-template-compiler": "2.5.17",
"vue-server-renderer": "2.5.17"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/config/prod.js
Expand Up @@ -5,7 +5,7 @@ module.exports = (api, options) => {
const getAssetPath = require('../util/getAssetPath')
const filename = getAssetPath(
options,
`js/[name]${isLegacyBundle ? `-legacy` : ``}${options.filenameHashing ? '.[chunkhash:8]' : ''}.js`
`js/[name]${isLegacyBundle ? `-legacy` : ``}${options.filenameHashing ? '.[contenthash:8]' : ''}.js`
)

webpackConfig
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/package.json
Expand Up @@ -61,7 +61,7 @@
"thread-loader": "^1.1.5",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"vue-loader": "^15.2.7",
"vue-loader": "^15.3.0",
"webpack": "^4.15.1",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-chain": "^4.8.0",
Expand Down
16 changes: 3 additions & 13 deletions yarn.lock
Expand Up @@ -12499,19 +12499,9 @@ vue-jest@^2.6.0:
tsconfig "^7.0.0"
vue-template-es2015-compiler "^1.6.0"

vue-loader@^15.2.4:
version "15.2.6"
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.2.6.tgz#4ad4e56a0ca1fd89ebc4220f9e3bd4723097b397"
dependencies:
"@vue/component-compiler-utils" "^2.0.0"
hash-sum "^1.0.2"
loader-utils "^1.1.0"
vue-hot-reload-api "^2.3.0"
vue-style-loader "^4.1.0"

vue-loader@^15.2.7:
version "15.2.7"
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.2.7.tgz#c1d40dae7407c2fc2215522d3b7cef736f568051"
vue-loader@15.3.0, vue-loader@^15.2.4, vue-loader@^15.3.0:
version "15.3.0"
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.3.0.tgz#b474d10a4e93d934a78c147fc3e314b370e9fc54"
dependencies:
"@vue/component-compiler-utils" "^2.0.0"
hash-sum "^1.0.2"
Expand Down

0 comments on commit 9e4d62c

Please sign in to comment.