Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何关闭PWA? #3395

Open
passioncsu opened this issue Aug 20, 2020 · 0 comments
Open

如何关闭PWA? #3395

passioncsu opened this issue Aug 20, 2020 · 0 comments

Comments

@passioncsu
Copy link

Question(提问)

个人觉得PWA是个没用的功能,反而会带来刷新缓存的一些问题, 现在需要关闭PWA功能.
搜索也发现没有人提这个issue特此提问,

尝试注释 vue.config.js中的

  pwa: {
    name: name,
    workboxPluginMode: 'InjectManifest',
    workboxOptions: {
      swSrc: path.resolve(__dirname, 'src/pwa/service-worker.js')
    }
  },

但是并没有达到预想的效果, 部署后反而一直提示有更新内容的弹框, 刷新多次也不会刷新.

请问如何便捷的开启或关闭PWA功能,
计划改为配置vue.config.js中的布尔值就可以开启或关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant