API Reference

Renderer

Pre-render CSS on demand based on HTML.

🚧This page is still under construction and some content may not be complete.

CLI

npx mcss render

Requires @master/css-renderer to be installed.

[source paths]

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

Default
undefined
Type
FastGlobPattern[]
npx mcss render 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.

npx mcss render
-c, --config

The source path of the Master CSS configuration.

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

-a, --analyze

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

Default
false
Type
boolean
npx mcss render --analyze
PREVIOUS
Extractor

Master CSS static extractor for various raw text extraction.

NEXT
Validator

Validator for Master CSS syntactic class.

MIT License © Aoyue Design LLC.
Issue on this page