vue-cli-plugin-prerender-spa icon indicating copy to clipboard operation
vue-cli-plugin-prerender-spa copied to clipboard

plugin installationg fails if no main.js found

Open erikrenaud opened this issue 5 years ago • 1 comments

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.

erikrenaud avatar Mar 11 '19 19:03 erikrenaud

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.

SolarLiner avatar Jun 19 '19 21:06 SolarLiner