trunk
trunk copied to clipboard
Capability to disable certain tools installation
Hi! Im using Trunk to build a Leptos solution and I want to use an specific wasm-bindgen version, but even when I specify the desired version in Cargo.toml and install wasm-bindgen-cli manually Trunk expects a more recent version and overrides it.
I have tried using --offline option to turn off tools downloading but it skips other tools like TailwindCSS.
Proposal
Prowide an option to "skip"/"ignore" certain tools from being downloaded.
trunk build --use-local wasm-bindgen
Or something similar, this way one could force the desired version to be used.
Thanks in advance!
True. Maybe have something like --skip-download <tool> where <tool> is an enum of the tools we have. And --skip-download accepts a list of values.
So one could do:
trunk --skip-download wasm-bindgen
Or:
trunk --skip-download wasm-bindgen,tailwind
Sounds good!
It would also be nice to add it as part of Trunk.toml.
I assume options on build and serve commands will be available in Trunk.toml by default, right?