module.exports = {
  extendWebpack(config) {
    config.module.noParse
      .add(/babel-standalone/)
      .add(/browserified-pug/)
      .add(/babel-preset-vue/)
  },
  production: {
    sourceMap: false
  },
  homepage: '/',
  presets: [
    require('poi-preset-bundle-report')(),
    require('poi-preset-offline')({
      pluginOptions: {
        version: '[hash]',
        autoUpdate: true,
        ServiceWorker: {
          events: true
        },
        AppCache: {
          events: true
        }
      }
    })
  ]
}

@@ -389,16 +389,254 @@
 : true,%0A
+        safeToUseOptionalCaches: true,%0A        caches: %7B%0A          main: %5B'index.html', 'client.*.*', 'vendor.*.*', 'editor-page.*.chunk.js'%5D,%0A          additional: %5B'*.chunk.js', ':externals:'%5D,%0A          optional: %5B':rest:'%5D%0A        %7D,%0A
         

tweak offline config