trunk icon indicating copy to clipboard operation
trunk copied to clipboard

Watching static files triggers wasm-bindgen

Open emi2k01 opened this issue 4 years ago • 2 comments

When a static file (eg. a .scss file) a rust build is triggered. Ideally, it should only trigger a sass build.

This makes development a bit slower.

emi2k01 avatar Jun 14 '21 22:06 emi2k01

@emi2k01 this is part of a larger feature, namely asset hashing and hash comparison during the build phase. Currently, the most time consuming build stage by far is the cargo build itself. Fortunately cargo has its own caching system, which trunk transparently leverages. For other asset types, we will need to implement a mechanism where we hash assets and then store their hash, and then during the build step we compare hashes to determine if something needs to be built.

This would be a great feature (most other web bundlers have such features). I will open a new issues to discuss the design of this feature in a more general context and will link back to this one.

thedodd avatar Jul 28 '21 00:07 thedodd

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 20 '23 00:11 github-actions[bot]