SolarLiner / vue-cli-plugin-prerender-spa

Boost SEO by prerendering your Vue application. Powered by prerender-spa-plugin.
https://www.npmjs.com/package/vue-cli-plugin-prerender-spa
MIT License
174 stars 26 forks source link

Different build output between this plugin and chrisvfritz/prerender-spa-plugin #30

Open sooxt98 opened 5 years ago

sooxt98 commented 5 years ago

image

The about page should but output as about > index.html instead of putting the about.html on the same directory with index.html

Vue & Cli version: All latest :P

SolarLiner commented 5 years ago

Vue & Cli version: All latest :P

Latest as of when? This is why we explicitely request version numbers. Otherwise it's not helpful.

I cannot reproduce this with a brand new repo. Care to send a repro link? (git repo, CodeSandbox would be awesome)

sooxt98 commented 5 years ago

@SolarLiner https://github.com/sooxiaotong/vue-cli-3-prerender-spa-plugin-demo here is my repo.

SolarLiner commented 5 years ago

Still can't reproduce, sorry. Output is a-ok on my end.

sooxt98 commented 5 years ago

Seems wierd 😂

Binaryify commented 5 years ago

same, confusing now

mkody commented 4 years ago

Looks like this comes from those lines

https://github.com/SolarLiner/vue-cli-plugin-prerender-spa/blob/6561f7adb3ba2937ba37e7a138ab57ddc2eeaf43/src/index.js#L31-L34

kirit0s commented 4 years ago

@sooxiaotong, this plugin expects slash at the end in render routes path.

For example:

renderRoutes: ['/', '/about/']

Then plugin create folder about with index.html.

sinjaz commented 4 years ago

I looked for this for a while. It's a big difference in behavior. I wish it was documented, if it is I missed it somehow. Thank you so much. Great work.

yoshschoemaker commented 4 years ago

Damn. I've been looking for HOURS for this problem. Finally!