Skip to content

Commit 3e53d91

Browse files
committed
Added CSS next example
Struggled to get an example of cssnext added because it needs to be called in the list of processors - since it is one of the most popular I thought it would be helpful to add to the docs.
1 parent 1f9f2ef commit 3e53d91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ gulp.task('css', function () {
3333
```js
3434
var postcss = require('gulp-postcss');
3535
var autoprefixer = require('autoprefixer-core');
36+
var cssnext = require('cssnext');
3637
var opacity = function (css, opts) {
3738
css.eachDecl(function(decl) {
3839
if (decl.prop === 'opacity') {
@@ -47,7 +48,8 @@ var opacity = function (css, opts) {
4748
gulp.task('css', function () {
4849
var processors = [
4950
autoprefixer({browsers: ['last 1 version']}),
50-
opacity
51+
opacity,
52+
cssnext()
5153
];
5254
return gulp.src('./src/*.css')
5355
.pipe(postcss(processors))

0 commit comments

Comments
 (0)