mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-13 12:40:18 -05:00
fix: ensure consistent build hash with different project locations
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
16
yarn.lock
16
yarn.lock
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user