Skip to content

Commit 1515ae3

Browse files
authored
feat!: upgrade to workbox v4 (#3915)
include manifest.json by default and exclude manifest.js files, following workbox v4 changes: GoogleChrome/workbox#1679
1 parent 4ef9e17 commit 1515ae3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vue/cli-plugin-pwa/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = (api, options) => {
3535
/\.map$/,
3636
/img\/icons\//,
3737
/favicon\.ico$/,
38-
/manifest\.json$/
38+
/^manifest.*\.js?$/
3939
]
4040
}
4141

packages/@vue/cli-plugin-pwa/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"dependencies": {
2626
"@vue/cli-shared-utils": "^3.6.0",
2727
"webpack": ">=4 < 4.29",
28-
"workbox-webpack-plugin": "^3.6.3"
28+
"workbox-webpack-plugin": "^4.3.0"
2929
},
3030
"devDependencies": {
3131
"register-service-worker": "^1.6.2"

0 commit comments

Comments
 (0)