Skip to content
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

Capability to disable certain tools installation #935

Open
LeoBorai opened this issue Jan 6, 2025 · 2 comments
Open

Capability to disable certain tools installation #935

LeoBorai opened this issue Jan 6, 2025 · 2 comments

Comments

@LeoBorai
Copy link
Contributor

LeoBorai commented Jan 6, 2025

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!

@ctron
Copy link
Collaborator

ctron commented Jan 13, 2025

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

@LeoBorai
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants