Vite build incosistent regarding "base" path #18380
Replies: 2 comments
-
That should not happen. Would you make a reproduction? |
Beta Was this translation helpful? Give feedback.
-
I had this same problem with previous PC Windows install, and the same problems persists after full clean Windows reinstall. Please find the reproduction attached. To reproduce:
Environment: |
Beta Was this translation helpful? Give feedback.
-
Hello,
experience inconsistency regarding build and "base" path config. The same relates to versions 5.1.4 through 5.4.3
Use case 1:
index.html
vite.config.js:
vite build
results in index.html without added base path to resource file:Use case 2:
Everything same just run:
vite build --base=/test-base-path/
and the resulting index.html is generated as expected with base path added:
QUESTION: why does vite build ignore "base" value in config file and does obey "base" parameter value set in build command?
Beta Was this translation helpful? Give feedback.
All reactions