Skip to content

Instantly share code, notes, and snippets.

@benjaminreid
Created August 27, 2015 13:54
Show Gist options
  • Save benjaminreid/d8826ca995def94a56ab to your computer and use it in GitHub Desktop.
Save benjaminreid/d8826ca995def94a56ab to your computer and use it in GitHub Desktop.
Gulp vs Grunt
// gulp
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
gulp.src('./sass/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('./css'));
});
gulp.task('default', ['sass']);
// grunt
grunt.initConfig({
sass: {
options: {
sourceMap: true
},
dist: {
files: {
'main.css': 'main.scss'
}
}
}
});
grunt.registerTask('default', ['sass']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment