-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Vite 'base' option is ignored for the wasm output path #6
Comments
This problem is fixed in the vite doc: https://vitejs.dev/config/#base Base public path when served in development or production. Valid values include:
|
That was fast! Thanks, man! |
The new But if I downgrade to I've been diving through the code and looks like root and crate paths aren't pointing to the actual path bc of an issue. Please consider checking my suggestion in #7 |
@sauloco Please install version |
Already tested, working ok and delivered. 👌🏻 |
in 1.3.1 it seems that absolute base paths work but not relative. When I have |
@maccesch, I tried this seems to be ok.
<!-- dist/index.html -->
<script type="module" crossorigin src="./assets/index.21e4292b.js"></script>
<link rel="modulepreload" href="./assets/vendor.77fab89d.js">
<link rel="stylesheet" href="./assets/index.41fe33df.css"> // dist/assets/chasm.f9b73bca.js
new URL("./assets/rsw~chasm_bg.7b76064a.wasm",location.origin) |
Our clients runs the app we're writing on some subfolders. So we have set the
base
config option in Vite to'./'
but the wasm file is still loaded from the root'/our_wasm_bg.xxxxx.wasm'
. We tried to setbase = '/test/'
but the wasm file is referenced absolutely without that.The text was updated successfully, but these errors were encountered: