Created
August 27, 2015 13:54
-
-
Save benjaminreid/d8826ca995def94a56ab to your computer and use it in GitHub Desktop.
Gulp vs Grunt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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