cssnano-brunch
A Brunch plugin witch optimize with CSSNano
Installation
npm install --save cssnano-brunch
Configuration
See : CSSNano Options for more details
plugins:
cssnano:
autoprefixer: true
discardComments: {removeAll:true}
=======
Usage
cssnano-brunch is an optimizer so it will be enable only on production environment brunch build -P
Exemple
Before
h1::before, h1:before {
margin: 10px 20px 10px 20px;
color: #ff0000;
-webkit-border-radius: 16px;
border-radius: 16px;
font-weight: normal;
font-weight: normal;
}
@charset "utf-8";
After
@charset "utf-8";h1:before{margin:10px 20px;color:red;border-radius:1pc;font-weight:400}
License
MIT