I’m using vite in a project and my folder structure is like this
youtube_comments/
src/
js/
script.js
sass/
styles.sass
index.html
When i move the index.html file in the root to the src folder and convert
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
},
},
to
rollupOptions: {
input: {
main: path.resolve(__dirname, 'src/index.html'),
},
there appears to be a src folder in my dist folder
although i want my index.html to be in the root of the dist foler
You need to sign in to view this answers
Leave feedback about this