Compile CSS from your content: full or JIT, minified, with source maps and stats.

Usage#

terminal
bash
npx nakshora build src/app.css -o dist/app.min.css --minify --stats

Flags#

FlagMeaning
-o, --output <file>Output path (stdout when omitted)
--minifyMinify the output
--fullEmit the full catalog instead of JIT
--content <globs…>Override content globs
--safelist <classes…>Extra safelist entries
--source-mapEmit a source map
--statsPrint size & class statistics
--diffShow 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 content globs match nothing (nakshora doctor proves it)
  • Missing dynamic classes → add them to the configuration/safelist|safelist

See also#

cli/index|CLI hub · configuration/index|Configuration reference