Skip to content

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

@RanmanticOfMonicaKS

Description

@RanmanticOfMonicaKS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions