Compile CSS from your content: full or JIT, minified, with source maps and stats.
Usage#
terminal
npx nakshora build src/app.css -o dist/app.min.css --minify --statsFlags#
| Flag | Meaning |
|---|---|
-o, --output <file> | Output path (stdout when omitted) |
--minify | Minify the output |
--full | Emit the full catalog instead of JIT |
--content <globs…> | Override content globs |
--safelist <classes…> | Extra safelist entries |
--source-map | Emit a source map |
--stats | Print size & class statistics |
--diff | Show what changed since the last build |
What to expect#
Reads your config, scans content, and writes the compiled stylesheet. With --stats you get class counts and byte sizes; with --diff the delta against the previous output — great for CI reviews.
Troubleshooting#
- Empty output → your
contentglobs match nothing (nakshora doctorproves it) - Missing dynamic classes → add them to the configuration/safelist|safelist
See also#
cli/index|CLI hub · configuration/index|Configuration reference
