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.
have the same situation too. It fails to remove import './registerServiceWorker'; due to the semicolon and the whole ssr:build & ssr:start fails to work. I have to manually remove the import line.
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 frommain.js
.This can be resolved by doing this
Here https://github.com/Akryum/vue-cli-plugin-ssr/blob/master/generator/index.js#L47