Skip to content

remove path from output index.html file #243

@ELI7VH

Description

@ELI7VH

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions