-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Generate an unnecessary HTML file when set pages.index.filename. #4299
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
Comments
I think you can do like this
chainWebpack: config => {
// copy public/ to dist/, but ignore index.html
config
.plugin('copy')
.tap(args => {
args[0][0].ignore.push('index.html')
return args
})
} tip: maybe you should generate correct index.html used by devserver for SPA, vue.config.js option |
haoqunjiang
added a commit
to haoqunjiang/vue-cli
that referenced
this issue
Sep 24, 2019
9 tasks
haoqunjiang
added a commit
that referenced
this issue
Sep 24, 2019
haoqunjiang
added a commit
that referenced
this issue
Oct 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
3.9.2
Reproduction link
https://codesandbox.io/s/vue-template-2exox
Environment info
Steps to reproduce
npm run build
What is expected?
only generate 200.html
What is actually happening?
generate 200.html and index.html
The text was updated successfully, but these errors were encountered: