From b2b15fe20bb9d1a23b93a879589c0e5cd8f2fa10 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 30 Apr 2019 00:09:27 +0800 Subject: [PATCH 1/2] feat!: upgrade to workbox v4 --- packages/@vue/cli-plugin-pwa/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-plugin-pwa/package.json b/packages/@vue/cli-plugin-pwa/package.json index 6b3ee46f90..3596c5d529 100644 --- a/packages/@vue/cli-plugin-pwa/package.json +++ b/packages/@vue/cli-plugin-pwa/package.json @@ -25,7 +25,7 @@ "dependencies": { "@vue/cli-shared-utils": "^3.6.0", "webpack": ">=4 < 4.29", - "workbox-webpack-plugin": "^3.6.3" + "workbox-webpack-plugin": "^4.3.0" }, "devDependencies": { "register-service-worker": "^1.6.2" From 7a24d4fb5705a61ea3a3ffb80e1568012b72a0fa Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 30 Apr 2019 00:09:43 +0800 Subject: [PATCH 2/2] chore: include manifest.json by default, and exclude manifest.js files --- packages/@vue/cli-plugin-pwa/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-plugin-pwa/index.js b/packages/@vue/cli-plugin-pwa/index.js index 91b52f68e2..462fa81656 100644 --- a/packages/@vue/cli-plugin-pwa/index.js +++ b/packages/@vue/cli-plugin-pwa/index.js @@ -35,7 +35,7 @@ module.exports = (api, options) => { /\.map$/, /img\/icons\//, /favicon\.ico$/, - /manifest\.json$/ + /^manifest.*\.js?$/ ] }