Created
December 10, 2017 14:31
-
-
Save khoipro/65802a1dd1c3a16be1cf012e445a937b to your computer and use it in GitHub Desktop.
Build style with sourcemap for testing
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() { | |
return gulp.src('./src/scss/main.scss') | |
.pipe(sourcemaps.init()) | |
.pipe(sass.sync({outputStyle: 'compressed'}).on('error', sass.logError)) | |
.pipe(rename({ extname: '.min.css' })) | |
.pipe(livereload()) | |
.pipe(sourcemaps.write('.')) | |
.pipe(gulp.dest('./assets/css/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment