October 23, 2024
Chicago 12, Melborne City, USA
javascript

I don't want to have a src folder in my dist foler


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

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video