Replies: 3 comments 10 replies
-
Add to
|
Beta Was this translation helpful? Give feedback.
5 replies
-
index.html and Project Root |
Beta Was this translation helpful? Give feedback.
5 replies
-
import path from 'path' export default {
root: './',
build: {
rollupOptions: {
- input: 'src/index.html',
+ input: path.join(__dirname, 'src/index.html'),
},
},
} I try to use absolute path of input, it's worked! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is plenty of reasoning why
index.html
is not inpublic
(for example here in the official docs) but there isn't any explanation why it isn't insrc
. @yyx990803 even explicitly says here:So then why isn't it in
src
?Especially since nowadays the repository root is usually used for config files (
.editorconfig
,vite.config.ts
, etc.) whichindex.html
is arguably not.Beta Was this translation helpful? Give feedback.
All reactions