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

Use trunk instead of just for WebGL example #62

Open
campbellcole opened this issue Jun 7, 2022 · 0 comments
Open

Use trunk instead of just for WebGL example #62

campbellcole opened this issue Jun 7, 2022 · 0 comments

Comments

@campbellcole
Copy link
Contributor

Currently, the WebGL example is compiled using the justfile. This works, but for a beginner it may be less reproducible due to how involved the justfile configuration is.

Without any changes to the code or configuration, trunk can be used to enable hot reloading and automatic serving of the built files:

cd examples/webgl
cargo install trunk
trunk serve --open

trunk can also be used to build the example without serving: trunk build [--release]

The only thing that needs changing are a few lines in the documentation, and perhaps abridging the justfile

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

1 participant