Multiple index.html files in public folder not being published in production #3119
Closed
Description
Version
3.2.1
Environment info
System:
OS: Windows 7
CPU: (8) x64 Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz
Binaries:
Node: Not Found
Yarn: 1.3.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
- Create an empty Vue project
- Create the following folder structure:
- Root/public
- Root/public/index.html
- Root/public/test/index.html
- Run the command npm run build
What is expected?
The dist folder to contain public/index.html and the public/test/index.html
What is actually happening?
The dist folder only contains the public/index.html and not the one from the test directory.
Related vue topic:
https://forum.vuejs.org/t/vue-cli-production-build-issues-with-multiple-index-html-files-in-public-folder/51110