Cargo web build // output name?

I have a crate named foobar

When I do

cargo web build --target=wasm32-unknown-unknown --release

it builds for me foobar.wasm, foobar.js.

Due to cache invalidation issues, I would prefer to be able to specify the name, so it builds out as foobar_00000.wasm, foobar_00000.js , then `foobar_00001.wasm, foobar_00001.js", etc ...

Is there some way to pass the "output prefix" option to "cargo web build" ?

(It seems like running plain mv would break things).

Usually I recommend using a query parameter for cache invalidation e.g. ?lastModified=1571434023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.