vue-cli-plugin-prerender-spa
vue-cli-plugin-prerender-spa copied to clipboard
plugin installationg fails if no main.js found
Installation fails if no main.js (to inject the render done event).
The workaround is to have a dummy main.js present at install or to manually finish installation by adding the appropriate code in the different entry points.
Under which circumstances does a project not have a main.js
file? Also, the plugin writes to main.js
only when answering "yes" to using a render event. Saying "no" to that question will not attempt to write to the file, and you can set it back to true in vue.config.js
.