nollup
nollup copied to clipboard
remove path from output index.html file
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