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

Missing the index.html and built dir is not correct too #142

Open
RanmanticOfMonicaKS opened this issue Sep 30, 2020 · 1 comment
Open

Comments

@RanmanticOfMonicaKS
Copy link

Describe the bug
after i add this plugin to my pervious pro by useing 'vue add prerender-spa-plugin'.
i followed the prompts ervery step. i think the generated configuration is also correct as bellow.
//...vue.config.js
image
// main.js
image

But something different from custom pro is that mine is not right in the root dir at my backend pro.
I have to set my publicPath to '/v5/',maybe thi caused the issue. this is my publicPath configuration bellow

publicPath: process.env.NODE_ENV === 'development' ? '/' : '/v5/',

then i got my dist Dir like this:
image

My login.html is under in the v5 Dir. And I missed my index.html,too.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Package version: X.X.X
Vue version: 2.6.X
Vue CLI version: 4.2.3

@RanmanticOfMonicaKS
Copy link
Author

thanks for erveyone coming to disscuss this issue and best wishes

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

1 participant