Akryum / Akryum/vue-cli-plugin-ssr
registerServiceWorker import not being removed from main.js when using semicolons
未关闭
- 主要语言
- JavaScript
- 星标
- 441
- 派生
- 69
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello, another quick fix here.
When invoking this plugin in a project with the pwa plugin and an eslint config that uses semicolons, the `registerServiceWorker` import line is not removed from `main.js`.
This can be resolved by doing this
```diff
-contents = contents.replace(/import ('|")\.\/registerServiceWorker('|")\n/, ``)
+contents = contents.replace(/import ('|")\.\/registerServiceWorker('|");?\n/, ``)
```
Here https://github.com/Akryum/vue-cli-plugin-ssr/blob/master/generator/index.js#L47
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。