Skip to content

Commit 8fc4b56

Browse files
committed
Add npm install instructions
Rearrange nested plugin order documentation example
1 parent 3767f1d commit 8fc4b56

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ We strive for the most complete transformation but we/no plugin can achieve true
1111
## Latest Version: 0.2.2
1212
### [Changelog](https://github.com/MadLittleMods/postcss-css-variables/blob/master/CHANGELOG.md)
1313

14+
### Install
15+
16+
`npm install postcss-css-variables --save-dev`
17+
1418

1519
# Usage
1620

@@ -87,10 +91,10 @@ var mycss = fs.readFileSync('input.css', 'utf8');
8791
8892
// Process your CSS with postcss-css-variables
8993
var output = postcss([
90-
// Process any CSS variables
91-
cssvariables(/*options*/),
92-
// After we processed all of the variables, flatten/unnest rules
93-
nestedcss
94+
// Flatten/unnest rules
95+
nestedcss,
96+
// Then process any CSS variables
97+
cssvariables(/*options*/)
9498
])
9599
.process(mycss)
96100
.css;

0 commit comments

Comments
 (0)