Created
September 15, 2015 14:08
-
-
Save jacobarriola/622831bbd3fe90394412 to your computer and use it in GitHub Desktop.
Gulp file using sourcemaps
This file contains hidden or 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.task('styles', function() { | |
gulp.src('assets/sass/**/*.scss') | |
.pipe(sourcemaps.init()) | |
.pipe(sass({ | |
outputStyle: 'compressed' | |
}) | |
.on('error', notify.onError(function(error) { | |
return "Error: " + error.message; | |
})) | |
) | |
.pipe(autoprefixer({ | |
browsers: ['last 2 versions', 'ie >= 9'] | |
})) | |
.pipe(sourcemaps.write('.')) | |
.pipe(gulp.dest('./assets/dist/css')) | |
.pipe(browserSync.stream({match: '**/*.css'})) | |
.pipe(notify({ | |
message: "Styles task complete!" | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment