bang/frontend/vue.config.js
Alberto Xamin ae6b6fbae4
server worker fix
Co-authored-by: GM <giulio.migani@studenti.unitn.it>
2021-06-07 18:28:04 +02:00

22 lines
406 B
JavaScript

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