mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
docs: clarify html input entry name ignored for HTML files (#13389)
This commit is contained in:
parent
2497756b2f
commit
aec1c1d6f0
@ -114,6 +114,8 @@ export default defineConfig({
|
||||
|
||||
If you specify a different root, remember that `__dirname` will still be the folder of your vite.config.js file when resolving the input paths. Therefore, you will need to add your `root` entry to the arguments for `resolve`.
|
||||
|
||||
Note that for HTML files, Vite ignores the name given to the entry in the `rollupOptions.input` object and instead respects the resolved id of the file when generating the HTML asset in the dist folder. This ensures a consistent structure with the way the dev server works.
|
||||
|
||||
## Library Mode
|
||||
|
||||
When you are developing a browser-oriented library, you are likely spending most of the time on a test/demo page that imports your actual library. With Vite, you can use your `index.html` for that purpose to get the smooth development experience.
|
||||
|
Loading…
Reference in New Issue
Block a user