Permalink
Browse files

fix(workbox): only cach css and js files

  • Loading branch information...
pi0 committed Aug 2, 2017
1 parent 778fe45 commit 42e3edb0fc027da949a2677a5a0a8b993669d7e0
Showing with 2 additions and 3 deletions.
  1. +2 −3 modules/workbox/index.js
@@ -30,8 +30,7 @@ module.exports = function nuxtWorkbox (options) {
directoryIndex: '/',
cacheId: process.env.npm_package_name + '_' + process.env.npm_package_version,
clientsClaim: true,
globPatterns: ['**\/*.{js,css,html,json}'],
globIgnores: '**/server-bundle.json',
globPatterns: ['**\/*.{js,css}'],
modifyUrlPrefix: {
'': fixUrl(publicPath)
},
@@ -46,7 +45,7 @@ module.exports = function nuxtWorkbox (options) {
{
urlPattern: fixUrl(publicPath + '/**'),
handler: 'cacheFirst'
},
}
]
}, options)))

0 comments on commit 42e3edb

Please sign in to comment.