-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (29 loc) · 873 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
gulp.task('scss', function() {
return gulp.src('sass/style.scss')
.pipe(sourcemaps.init())
.pipe(sass ({
errLogConsole: true,
outputStyle: 'nested',
sourceComments: false,
}).on("error", sass.logError))
.pipe(autoprefixer({
browsers: [
'last 3 chrome versions',
'last 3 firefox versions',
'last 3 opera versions',
'last 3 safari versions',
'last 3 ios versions',
'android >= 4.0',
'ie >= 10' // change to `last 3 ie versions` after IE12 release.
]
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest('css'))
})
gulp.task('default', ['scss'], function() {
gulp.watch('sass/main.scss', ['scss'])
});