nollup icon indicating copy to clipboard operation
nollup copied to clipboard

remove path from output index.html file

Open ELI7VH opened this issue 1 year ago • 0 comments

I am building a sub-app and I want to remove the base path before it goes to the dist folder

building in vite, but configuring using rollup

rollupOptions: {
  input: {
    main: 'apps/ocn/index.html',
  },
  // this oputputs this index.html to dist/apps/ocn/index.html
  // i just want it to output to dist/index.html - how?
},

why is there not a simple option for this?

here is my hack to make it work - like is there seriously not a better way?

APP_BUILD_TARGET=ocn vite build && mv dist/ocn/apps/ocn/index.html dist/ocn/index.html && rm -r dist/ocn/apps

ELI7VH avatar Aug 04 '23 17:08 ELI7VH