1.2.1 • Published 5 years ago

cssnano-brunch v1.2.1

Weekly downloads
58
License
MIT
Repository
github
Last release
5 years ago

cssnano-brunch Greenkeeper badge Build Status

NPM NPM

A Brunch plugin which optimizes CSS with CSSNano.

Installation

npm install --save cssnano-brunch

Configuration

See the CSSNano Options for more details.

plugins:
  cssnano:
    preset: [
      'advanced',
      autoprefixer:
        add: true
    ]

Usage

cssnano-brunch is an optimizer so it will be only enabled in a production environment brunch build -P.

Example

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;
    content: 'i ♥ cssnano';
}
/* invalid placement */
@charset "utf-8";

After

@charset "utf-8";h1:before{margin:10px 20px;color:red;border-radius:1pc;font-weight:400;content:'i ♥ cssnano'}

Testing

Just run npm i && npm test

License

MIT

1.2.1

5 years ago

1.2.0

5 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago