sigmadelta
01/15/2025, 3:08 PMwasmJsBrowserDistribution
and deploy these online, the fixes or new versions aren't visible inside of the browser because the wasm
files get cached by the browser.
Is there a standard mechanism available to ensure that the output builds either get versioned inside of the distribution step, or that the browser always picks up the latest version?
Currently I've picked up the strategy to version the actual modulename & output (and keep this in sync with the HTML file), but there should be a better approach I assume.Winson Chiu
01/15/2025, 5:00 PMsigmadelta
01/15/2025, 5:02 PMWinson Chiu
01/15/2025, 5:05 PMsigmadelta
01/15/2025, 9:13 PMoutputFileName
in the browser
block indeed, but even when I remove this, it seems that the hash-named wasm
file stays the same. The pics in attachment show the dist folder, once as-is and the second time when I add an additional composable to the layout, the output hash/name stays the same.Winson Chiu
01/15/2025, 9:37 PMsigmadelta
01/15/2025, 9:40 PM./gradlew clean wasmJsBrowserDistribution
.
I'll try running them individually to see if that makes a difference but I assume that it shouldn't.Winson Chiu
01/15/2025, 9:55 PMWinson Chiu
01/15/2025, 9:56 PMsigmadelta
01/15/2025, 10:09 PMWinson Chiu
01/15/2025, 10:10 PMsigmadelta
01/15/2025, 10:17 PM