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

Not triggered on different env?

Open demiro opened this issue 5 years ago • 4 comments

Describe the bug If I run the build with npm run build -- --mode=prod (or any other env)

the prerender does not trigger. How do I trigger it with different env settings?

demiro avatar Mar 02 '20 06:03 demiro

YES, I was wondering the same.... please advise... why does not run on different mode?

demiro avatar Jul 10 '20 23:07 demiro

I have experienced the same issue. Running npm run build -- --mode production creates multiple html files while using npm run build -- --mode development creates only one html file. I have the onlyProduction option set to false in my vue.config.js. Has anyone found a solution to that?

gogibogi4 avatar Sep 04 '20 19:09 gogibogi4

I have done some additional research on this. The problem is in index.js on line 139. The reason for this is linked with issue #16 . The issue itself is fixed with a workaround and has not been addresed directly. This should be properly fixed before reenabling the feature.

gogibogi4 avatar Sep 04 '20 20:09 gogibogi4

I find onlyProduction: false, does not work in dev mode, (no compiled index.html is created) but does in production.

ricky11 avatar Dec 22 '20 09:12 ricky11