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

Static project using hashmode router generation include non needed files #24450

Closed
diorcety opened this issue Nov 24, 2023 · 1 comment · Fixed by #24517
Closed

Static project using hashmode router generation include non needed files #24450

diorcety opened this issue Nov 24, 2023 · 1 comment · Fixed by #24517

Comments

@diorcety
Copy link
Contributor

Environment

npm generate
target: 'static'
ssr: false,
router: {
options: {
hashMode: true
}
}

Reproduction

Just use a project with few pages

Describe the bug

Currently when generating static project using hashmode routeur with these pages:
alerts.vue auth.vue dashboard.vue index.vue
Will generate and dist directory containing these files/directory:
200.html 404.html alerts auth dashboard favicon.ico index.html _nuxt

We should exclude the pages from the generation in this case

Additional context

No response

Logs

No response

@diorcety
Copy link
Contributor Author

cf: diorcety@0e400f0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants