npm install makestatic-optimize-css> Optimize CSS files
Optimizes CSS files using [clean-css][].
---
- Install
- API
- OptimizeCss
- See Also
- .sources
- #minifier
- License
---
```
yarn add makestatic-optimize-css
Compress CSS files.
#### See Also
#### .sources
`javascript`
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
`javascript`
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`.
MIT
---
Created by mkdoc on March 12, 2017
[docs]: https://makestatic.ws/docs/ "Documentation"
[standalone manual]: https://github.com/makestatic/website/blob/master/MANUAL.md "Standalone Manual"
[yarn]: https://yarnpkg.com "Yarn"
[webpack]: https://webpack.js.org "Webpack"
[babel]: https://babeljs.io "Babel"
[postcss]: http://postcss.org "Postcss"
[sugarss]: https://github.com/postcss/sugarss "Sugarss"
[reshape]: https://github.com/reshape/reshape "Reshape Source Code"
[reshapeml]: https://reshape.ml "Reshape"
[clean-css]: https://github.com/jakubpawlowicz/clean-css "Clean CSS"
[html-minifier]: https://github.com/kangax/html-minifier "Html Minifier"
[uglify-js]: https://github.com/mishoo/UglifyJS2 "Uglify JS"
[imagemin]: https://github.com/imagemin/imagemin "Imagemin"
[mkdoc]: https://github.com/mkdoc/mkdoc "Mkdoc"
[browsersync]: https://www.browsersync.io "Browsersync"
[yeoman]: http://yeoman.io "Yeoman"
[spike]: https://www.spike.cf "Spike"
[validator]: https://github.com/validator/validator "HTML Validator"
[github pages]: https://pages.github.com "Github Pages"
[amazon s3]: https://aws.amazon.com/s3/ "Amazon S3"
[google sitemaps]: https://support.google.com/webmasters/answer/183668?hl=en&ref_topic=4581190 "Google Sitemaps"
[sitemaps]: https://www.sitemaps.org/ "Sitemaps"