trunk-rs/trunk

Delay asset pipeline until rust build finished

Open

#701 opened on Feb 3, 2024

 (4 comments) (2 reactions) (0 assignees)Rust (315 forks)auto 404
enhancementhelp wantedneeds design

Repository metrics

Stars
 (4,347 stars)
PR merge metrics
 (PR metrics pending)

Description

My use case includes copying SCSS files through a libraries build.rs file into my application root directory.

Building the styles (SASS) will only work with the output from this build script.

But the asset pipeline always runs in parallel / can not be configured to run after a finished rust build. Errors in the SASS pipeline lead to a retry, also skipping/aborting the rust build, leading to no build.rs being executed an and endless retry-loop.

Could such an optional behavior be integrated into trunk?

Contributor guide