Browser extension development plugin for vue-cli 4.x
First create vue cli simple project and then add extension.
vue create demo-extensionUsing the vue cli vue add browser-extension command
npm run serve
npm run buildOpen vue.config.js file and insert this code.
chainWebpack(webpackConfig) {
webpackConfig.plugin('copy-manifest').tap(args => {
args[0][0].force = true
return args
})
},Update version number only package.json file
- App.vue
- main.js
- Removing the
registerServiceWorker.jsfile - removing the
import of registerServiceWorker.jsfrommain.js. - removing the PWA plugin from the devDependencies in
package.json.