Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref: #610.
Changes the logic in the
build.rs
to allow for a more flexible way of controlling how CSS should be built. Most importantly, this reverts the behaviour where oranda would download a Tailwind binary on build - this functionality is now hidden behind an environment variable. You can now control how CSS is built via the following ways:ORANDA_USE_TAILWIND_BINARY
to build CSS at runtime (in development), or at build time (in release mode)npm run build
inoranda-css/
, and on the next build, oranda will embed the built CSS file into the binary.Breaking changes
Distributors that would previously rely on Tailwind to build CSS for embedding into the binary now need to prebuild CSS using
npm run build
, or they need to use their own Tailwind binary to produce aoranda-css/dist/oranda.css
file.TODO
css.rs
package.json