vue-cli-plugin-prerender-spa icon indicating copy to clipboard operation
vue-cli-plugin-prerender-spa copied to clipboard

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

Open sooxt98 opened this issue 6 years ago • 9 comments

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

sooxt98 avatar Apr 24 '19 16:04 sooxt98

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)

SolarLiner avatar Jun 02 '19 17:06 SolarLiner

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

sooxt98 avatar Jun 02 '19 19:06 sooxt98

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

SolarLiner avatar Jun 19 '19 20:06 SolarLiner

Seems wierd 😂

sooxt98 avatar Jun 20 '19 13:06 sooxt98

same, confusing now

Binaryify avatar Jul 02 '19 02:07 Binaryify

Looks like this comes from those lines

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

mkody avatar Sep 21 '19 10:09 mkody

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

For example:

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

Then plugin create folder about with index.html.

kirit0s avatar Nov 10 '19 13:11 kirit0s

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.

sinjaz avatar May 07 '20 17:05 sinjaz

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

yoshschoemaker avatar Aug 18 '20 20:08 yoshschoemaker