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

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

Open
sooxt98 opened this issue Apr 24, 2019 · 9 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@sooxt98
Copy link

sooxt98 commented Apr 24, 2019

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 SolarLiner self-assigned this Jun 2, 2019
@SolarLiner SolarLiner added the question Further information is requested label Jun 2, 2019
@SolarLiner
Copy link
Owner

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
Copy link
Author

sooxt98 commented Jun 2, 2019

@SolarLiner SolarLiner added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 19, 2019
@SolarLiner
Copy link
Owner

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

@sooxt98
Copy link
Author

sooxt98 commented Jun 20, 2019

Seems wierd 😂

@Binaryify
Copy link

same, confusing now

@mkody
Copy link

mkody commented Sep 21, 2019

Looks like this comes from those lines

const route = renderedRoute.route;
if (route[route.length - 1] !== "/" && extname(route) === "") {
renderedRoute.outputPath = join(paths.outputDir || paths.staticDir, `${route}.html`);
}

@kirit0s
Copy link

kirit0s commented Nov 10, 2019

@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
Copy link

sinjaz commented May 7, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants