From c4bd1d6104945339a522636218d021a8622f068c Mon Sep 17 00:00:00 2001 From: nobody <411298027@qq.com> Date: Fri, 2 Jun 2017 16:59:04 +0800 Subject: [PATCH] add minify: true on SWPrecachePlugin --- build/webpack.client.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/build/webpack.client.config.js b/build/webpack.client.config.js index 53ea05a36..d892e17b4 100644 --- a/build/webpack.client.config.js +++ b/build/webpack.client.config.js @@ -48,6 +48,7 @@ if (process.env.NODE_ENV === 'production') { new SWPrecachePlugin({ cacheId: 'vue-hn', filename: 'service-worker.js', + minify: true, dontCacheBustUrlsMatching: /./, staticFileGlobsIgnorePatterns: [/\.map$/, /\.json$/], runtimeCaching: [