0.0.4 • Published 5 years ago
vue-cli-plugin-bundle-sw v0.0.4
vue-cli-plugin-bundle-sw
WIP not ready for your projects
Sample config in your vue.config.js
file:
const IS_DEV = process.env.NODE_ENV === 'development'
module.exports = {
pluginOptions: {
swBundle: {
src: path.resolve(__dirname, 'src', 'sw.js'),
dest: 'service-worker.js',
workboxOptions: {
importWorkboxFrom: IS_DEV ? 'cdn' : 'local'
},
silent: false
}
}
}
0.0.4
5 years ago