bang/frontend/vue.config.js
2021-06-07 18:40:05 +02:00

27 lines
543 B
JavaScript

const { GenerateSW } = require("workbox-webpack-plugin");
module.exports = {
publicPath: "./",
pwa: {
name: 'PewPew!',
appleMobileWebAppCache: "yes",
manifestOptions: {
display: 'standalone',
},
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'src/registerServiceWorker.js'
}
},
configureWebpack: {
plugins: [new GenerateSW({
clientsClaim: true,
skipWaiting: true,
cleanupOutdatedCaches: true,
navigateFallback: 'index.html',
})],
output: {
crossOriginLoading: 'anonymous'
},
}
};