Disable PWA plugin in a Vue

Posted on January 8, 2021

.js App

Today I've learned how to disable an already intalled PWA plugin in a Vue.js project.

Here the solution you want to put in vue.config.js found out in here:

module.exports = {
  chainWebpack: config => {
    config.plugins.delete('pwa')
    config.plugins.delete('workbox')
  }
}

You have also to disable the import statement in main.js related to the service-worker file.

Spotted a typo? Send a patch