Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not triggered on different env? #92

Open
demiro opened this issue Mar 2, 2020 · 4 comments
Open

Not triggered on different env? #92

demiro opened this issue Mar 2, 2020 · 4 comments

Comments

@demiro
Copy link

demiro commented Mar 2, 2020

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
Copy link
Author

demiro commented Jul 10, 2020

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

@gogibogi4
Copy link

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
Copy link

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.

@ricky11
Copy link

ricky11 commented Dec 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants