Skip to content

Commit a503200

Browse files
committed
Merge pull request #44 from wesbos/patch-1
Added CSS next example
2 parents 1f9f2ef + 3e53d91 commit a503200

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)