You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use npm run dev (vite --host 0.0.0.0 --port 3000) it work fine but when I use npm run build (vite build) it break because the url "../components/Navbar.html" doesn't exist anymore.
I try fixing that by adding the component to the static assets with assetsInclude: ['/components/*.html'] in vite.config.js but it didn't work for several reasons :
A hash is added to the file name
The file is then stored in the assets folder, not 'components/'
The links inside are not process so there are broken
Is there a way to fix that so I can steel use Vite to build?
I have installed the plugin with a package manager and created a basic component :
I use it inside my index.html
When I use
npm run dev
(vite --host 0.0.0.0 --port 3000) it work fine but when I usenpm run build
(vite build) it break because the url "../components/Navbar.html" doesn't exist anymore.I try fixing that by adding the component to the static assets with
assetsInclude: ['/components/*.html']
in vite.config.js but it didn't work for several reasons :Is there a way to fix that so I can steel use Vite to build?
My vite.config.js
Thank you!
The text was updated successfully, but these errors were encountered: