API Reference

Master CSS CLI

Command line interface for Master CSS.


Extractor

Scan source files, extract syntax classes, generate CSS rules, and output as a CSS file.

mcss extract

The command runs according to the preset extractor options.

extract [source paths]

Explicitly specify sources to scan, ignoring options.include and options.exclude restrictions.

Default
undefined
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

extract -o, --output

Watch for file changes and build continuously.

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

extract --options

Specifies the source of the extractor options.

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

extract -v, --verbose

Verbose logging.

Default
1
Type
number

Set to 0 to silence the terminal.

mcss extract --verbose 0

extract -w, --watch

Watch for file changes and build continuously.

Default
false
Type
boolean
mcss extract --watch

Renderer

mcss render

render [source paths]

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

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

render -c, --config

The source path of the Master CSS configuration.

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

render -a, --analyze

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

Default
false
Type
boolean
mcss render "**/*.html" --analyze
API Reference
Create Master CSS

Set up or create a modern web app by running one command.

API Reference
Master CSS Core

The core syntax parsing of Master CSS.

© Aoyue Design LLC.