Browser extension development plugin for vue-cli 4.x
First create vue cli simple project and then add extension.
vue create demo-extension
Using the vue cli vue add browser-extension
command
npm run serve
npm run build
Open 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.js
file - removing the
import of registerServiceWorker.js
frommain.js
. - removing the PWA plugin from the devDependencies in
package.json
.