套件

@master/css-cli@master/css-cli

NPM package ( download / month )NPM package ( download / month )NPM package size (gzipped size)NPM package size (gzipped size)Source codeSource code

Master CSS CLI

Installation

npm i @master/css-cli

API Reference

extract [source paths]

Scan source files, extract syntax classes, generate CSS rules, and output as a CSS file. Explicitly specify sources to scan, ignoring options.include and options.exclude restrictions.

Type
FastGlobPattern[]
mcss extract index.html main.js

If no sources are specified, by default, all directories of your current project will be scanned according to options.include and options.exclude.

mcss extract

The command runs according to the preset extractor options.

extract -o, --output <path>

Watch for file changes and build continuously.

Type
string
Default
'master.css'
mcss extract --output master.css

extract --options <path>

Specifies the source of the extractor options.

Type
string
Default
'master.css-extractor.*'
mcss extract --option dir/master.css-extractor.js

extract -v, --verbose

Verbose logging.

Type
number
Default
1

Set to 0 to silence the terminal.

mcss extract --verbose 0

extract -w, --watch

Watch for file changes and build continuously.

Type
boolean
Default
false
mcss extract --watch

render [source paths]

The path in glob patterns of the source of the HTML file

Type
FastGlobPattern[]
mcss render "**/*.html"

render -c, --config <path>

The source path of the Master CSS configuration.

Type
string
Default
'master.css.*'
mcss render "**/*.html" --config dir/master.css.js

render -a, --analyze

Analyze injected CSS and HTML size ( brotli ) without writing to file

Type
boolean
Default
false
mcss render "**/*.html" --analyze

  • Master UI


© 2025 Aoyue Design LLC.MIT License
Trademark Policy