Repository navigation
Replies: 2 comments
|
The output directory sets where files are written; Vite's top-level I reproduced this with Vite 8.3.3 using a JS entry and an emitted image: the default base made |
|
I keep export default defineConfig({
build: {
manifest: true
rollupOptions: {
input: 'src/index.tsx'
}
}
})That emits hashed JS/CSS assets without needing — |
Uh oh!
There was an error while loading. Please reload this page.
I have a project which is spa, it have a very basic structure:
When i developing frontend part of this project i need this index.html because of possibility to run it and watch changes in browser in real time.
When i building it for serving from backend i don't need in index.html, it will be generated by my golang backend, but i need all other files from frontend.
I wrote this
config in vite.config.ts file as was recommended in this discussion and it works very close to behavior i need.
The problem is that given config builds with structure
when generated js asks for this assets from
path.
I can't believe that there is no solution for normal spa building and bundling with vite.
Will be happy with some help.
All reactions