Skip to content

Instantly share code, notes, and snippets.

@psi-4ward
Created December 1, 2014 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psi-4ward/7b8aabdbdb41ddaa6ede to your computer and use it in GitHub Desktop.
Save psi-4ward/7b8aabdbdb41ddaa6ede to your computer and use it in GitHub Desktop.
gulp.task('build-stylesheets', function () {
return gulp.src('sources/stylesheets/tenside.less')
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(less({compress: true}))
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(rename({suffix:'.min'}))
.pipe(sourcemaps.write('.', {sourceRoot: '../sources/stylesheets'}))
.pipe(gulp.dest('stylesheets'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment