thgh / rollup-plugin-serve

Serve your rolled up bundle like webpack-dev-server
MIT License
248 stars 54 forks source link

multiple index.html #66

Open Rabbitzzc opened 3 years ago

Rabbitzzc commented 3 years ago

If there are multiple folders and there are multiple index.html, I think the plugin needs to provide a hint. image

contentBase: [resolveFile('example1'), resolveFile('example'), resolveFile('dist')]
Rabbitzzc commented 3 years ago

Or add a configuration that specifies a index.html in a directory.

thgh commented 3 years ago

Hi, I'm afraid I don't understand what you are saying. Do you have an example?

Rabbitzzc commented 3 years ago

If there are multiple folders and multiple index.html files in the project, the first imported index.html is read by default.