Leptos Forge build script library
Library to be used in your build scripts for
- Better output
- Support for the multiline text in the cargo build scripts
- Every lines of output starts with tags, to show where things happen
- colors to inform you how important message is
- Reliable tailwindcss integration
- Build your tailwind css file from source across dependencies
- Ability to watch for changes in your whole workspace and automatically recompile css when needed
How to use it
Output
In your Cargo.toml add
[]
= "0.6"
In your build script:
use ;
Tailwind integration
In your library crate Cargo.toml add (you don't need to depend on the leptos_forge_build_script here)
[]
# Path to the main tailwind file for your crate
#
# Lib is the tailwind `main.css` without `@import "tailwind"`. import "tailwind"
# statement will be added for you automatically.
="assets/css/lib.css"
In your application Cargo.toml add
In your Cargo.toml add
[]
="0.22.0"
= "0.6"
[]
# Path to the main tailwind file for your crate
#
# Lib is the tailwind `main.css` without `@import "tailwind"`. import "tailwind"
# statement will be added for you automatically.
="assets/css/lib.css"
# Path where the compiled css file should be
="target/resources/css/main.css"
In your application build script add
use current_dir;
use
use ;
Acknowledgement
Tailwind integration is based on cargo-resources
codebase.