bang/frontend/vue.config.js
2020-12-13 18:38:31 +01:00

21 lines
380 B
JavaScript

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