Created
December 3, 2019 05:24
-
-
Save dsebao/0db8834b4aaf469af4cb17032f872d73 to your computer and use it in GitHub Desktop.
Basic Gulpfile.js config
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
| const gulp = require('gulp'); | |
| sass = require('gulp-sass'); | |
| autoprefixer = require('gulp-autoprefixer'); | |
| gulp.task('sass',function(){ | |
| return gulp.src('/scss/*.scss') | |
| .pipe(sass({ | |
| outputStyle: 'expanded' | |
| })) | |
| .pipe(autoprefixer({ | |
| versions: ['last 3 browsers'] | |
| })) | |
| .pipe(gulp.dest('/css')); | |
| }); | |
| gulp.task('default',function(){ | |
| return gulp.watch('./scss/*.scss',gulp.series('sass')); | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment