-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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
// main.js
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:
My login.html is under in the v5 Dir. And I missed my index.html,too.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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