Skip to content

Commit 5b9d7de

Browse files
bodynoyyx990803
authored andcommitted
add minify: true on SWPrecachePlugin (vuejs#198)
1 parent 233bbf5 commit 5b9d7de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/webpack.client.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ if (process.env.NODE_ENV === 'production') {
4848
new SWPrecachePlugin({
4949
cacheId: 'vue-hn',
5050
filename: 'service-worker.js',
51+
minify: true,
5152
dontCacheBustUrlsMatching: /./,
5253
staticFileGlobsIgnorePatterns: [/\.map$/, /\.json$/],
5354
runtimeCaching: [

0 commit comments

Comments
 (0)