While build.rs allows conditional compilation,
it requires that it is crate-wide. By moving the
UI's embed into its own crate, npm run build
will only be called when files change in the ui
directory.
Note: also removed npm ci from the crate build
itself. That's useful but because you get zero
feedback it is ~impossible to diagnose from cargo
itself. Leaving npm ci as something that is run
during the UI development process separately.
While
build.rs
allows conditional compilation, it requires that it is crate-wide. By moving the UI's embed into its own crate,npm run build
will only be called when files change in theui
directory.Note: also removed
npm ci
from the crate build itself. That's useful but because you get zero feedback it is ~impossible to diagnose from cargo itself. Leavingnpm ci
as something that is run during the UI development process separately.Fixes #691