Skip to content

Commit 448ab96

Browse files
committed
fix: disable realContentHash optimization in app target
It's messing with the html-webpack-plugin, telling it the wrong hash of the legacy bundle, therefore making the modern mode fallback unusable. (TODO: add a test later)
1 parent cd78376 commit 448ab96

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ module.exports = (api, options) => {
3333
.filename(outputFilename)
3434
.chunkFilename(outputFilename)
3535

36+
webpackConfig.optimization
37+
.set('realContentHash', false)
38+
3639
// code splitting
3740
if (process.env.NODE_ENV !== 'test') {
3841
webpackConfig.optimization.splitChunks({

0 commit comments

Comments
 (0)