Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

makestatic-optimize-css

makestatic6MIT1.0.25

Optimize CSS files

makestatic, makestatic-plugin, optimize, css

readme

Optimize CSS

Optimize CSS files

Optimizes CSS files using clean-css.



Install

yarn add makestatic-optimize-css

API

OptimizeCss

Compress CSS files.

See Also

.sources

OptimizeCss.prototype.sources(file, context[, options])

Optimize a file.

  • file Object the current file.
  • context Object the processing context.
  • options Object options for clean-css.

#minifier

static minifier(file, context[, options])

Performs minification on a single file using clean-css.

Assigns the compressed stylesheet to the content property of the file.

  • file Object the file to optimize.
  • context Object the processing context.
  • options Object options for clean-css.

License

MIT


Created by mkdoc on March 12, 2017