Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove path from output index.html file #243

Open
ELI7VH opened this issue Aug 4, 2023 · 0 comments
Open

remove path from output index.html file #243

ELI7VH opened this issue Aug 4, 2023 · 0 comments

Comments

@ELI7VH
Copy link

ELI7VH commented Aug 4, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant