Skip to content

Commit 9e4d62c

Browse files
committed
fix: ensure consistent build hash with different project locations
1 parent a0179ce commit 9e4d62c

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"fs-monkey": "0.3.1",
7676
"babel-core": "7.0.0-bridge.0",
7777
"vue": "2.5.17",
78+
"vue-loader": "15.3.0",
7879
"vue-template-compiler": "2.5.17",
7980
"vue-server-renderer": "2.5.17"
8081
}

packages/@vue/cli-service/lib/config/prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = (api, options) => {
55
const getAssetPath = require('../util/getAssetPath')
66
const filename = getAssetPath(
77
options,
8-
`js/[name]${isLegacyBundle ? `-legacy` : ``}${options.filenameHashing ? '.[chunkhash:8]' : ''}.js`
8+
`js/[name]${isLegacyBundle ? `-legacy` : ``}${options.filenameHashing ? '.[contenthash:8]' : ''}.js`
99
)
1010

1111
webpackConfig

packages/@vue/cli-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"thread-loader": "^1.1.5",
6262
"uglifyjs-webpack-plugin": "^1.2.7",
6363
"url-loader": "^1.0.1",
64-
"vue-loader": "^15.2.7",
64+
"vue-loader": "^15.3.0",
6565
"webpack": "^4.15.1",
6666
"webpack-bundle-analyzer": "^2.13.1",
6767
"webpack-chain": "^4.8.0",

yarn.lock

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12499,19 +12499,9 @@ vue-jest@^2.6.0:
1249912499
tsconfig "^7.0.0"
1250012500
vue-template-es2015-compiler "^1.6.0"
1250112501

12502-
vue-loader@^15.2.4:
12503-
version "15.2.6"
12504-
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.2.6.tgz#4ad4e56a0ca1fd89ebc4220f9e3bd4723097b397"
12505-
dependencies:
12506-
"@vue/component-compiler-utils" "^2.0.0"
12507-
hash-sum "^1.0.2"
12508-
loader-utils "^1.1.0"
12509-
vue-hot-reload-api "^2.3.0"
12510-
vue-style-loader "^4.1.0"
12511-
12512-
vue-loader@^15.2.7:
12513-
version "15.2.7"
12514-
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.2.7.tgz#c1d40dae7407c2fc2215522d3b7cef736f568051"
12502+
vue-loader@15.3.0, vue-loader@^15.2.4, vue-loader@^15.3.0:
12503+
version "15.3.0"
12504+
resolved "https://registry.yarnpkg.com/vue-loader/-/vue-loader-15.3.0.tgz#b474d10a4e93d934a78c147fc3e314b370e9fc54"
1251512505
dependencies:
1251612506
"@vue/component-compiler-utils" "^2.0.0"
1251712507
hash-sum "^1.0.2"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy