Package

CLI

Command line interface for Master CSS.


Interfaces

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

Watch for file changes and build continuously.

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

extract --options

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

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
Design Token
Colors

Customizing color variables or starting with the crafted palette.

© Aoyue Design LLC.