Skip to content

Instantly share code, notes, and snippets.

@magsout
Last active August 29, 2015 14:14
Show Gist options
  • Save magsout/a649f3b0816c62a8f3e2 to your computer and use it in GitHub Desktop.
Save magsout/a649f3b0816c62a8f3e2 to your computer and use it in GitHub Desktop.
/* gulp stylesheets or gulp stylesheets --production */
gulp.task("stylesheets", function() {
return gulp.src("./assets/css/admin.css")
.pipe(options.production ? plumber() : gutil.noop())
.pipe(cssnext({
sourcemap : !options.production,
browsers : ['ff >= 20', 'ie >= 8', 'safari >= 5.1', 'opera >= 12', 'chrome >=20'],
features: {
customProperties: true,
calc: true ,
customMedia: true,
mediaQueriesRange: true,
customSelectors: true,
colorFunction:true,
colorHexAlpha: true,
colorHwb:true,
colorRebeccapurple: true,
fontVariant: true,
filter: true,
rem: true
}
}))
.pipe(options.production ? minifyCSS({keepSpecialComments:0}) : gutil.noop())
.pipe(gulp.dest("./assets/build/stylesheets"))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment