Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
806 bytes
|
Line | |
---|
1 | # [postcss][postcss]-colormin
|
---|
2 |
|
---|
3 | > Minify colors in your CSS files with PostCSS.
|
---|
4 |
|
---|
5 | ## Install
|
---|
6 |
|
---|
7 | With [npm](https://npmjs.org/package/postcss-colormin) do:
|
---|
8 |
|
---|
9 | ```
|
---|
10 | npm install postcss-colormin --save
|
---|
11 | ```
|
---|
12 |
|
---|
13 |
|
---|
14 | ## Example
|
---|
15 |
|
---|
16 | ```js
|
---|
17 | var postcss = require('postcss')
|
---|
18 | var colormin = require('postcss-colormin');
|
---|
19 |
|
---|
20 | var css = 'h1 {color: rgba(255, 0, 0, 1)}';
|
---|
21 | console.log(postcss(colormin()).process(css).css);
|
---|
22 |
|
---|
23 | // => 'h1 {color:red}'
|
---|
24 | ```
|
---|
25 |
|
---|
26 | For more examples see the [tests](src/__tests__/index.js).
|
---|
27 |
|
---|
28 |
|
---|
29 | ## Usage
|
---|
30 |
|
---|
31 | See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
---|
32 | examples for your environment.
|
---|
33 |
|
---|
34 |
|
---|
35 | ## Contributors
|
---|
36 |
|
---|
37 | See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
---|
38 |
|
---|
39 |
|
---|
40 | ## License
|
---|
41 |
|
---|
42 | MIT © [Ben Briggs](http://beneb.info)
|
---|
43 |
|
---|
44 |
|
---|
45 | [postcss]: https://github.com/postcss/postcss
|
---|
Note:
See
TracBrowser
for help on using the repository browser.