forked from viewflow/viewflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.babel.js
39 lines (36 loc) · 909 Bytes
/
gulpfile.babel.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
34
35
36
37
38
39
import autoprefixer from 'autoprefixer'
import concat from 'gulp-concat'
import cssnano from 'cssnano';
import gulp from 'gulp'
import merge from 'merge-stream'
import postcss from 'gulp-postcss'
import pump from 'pump'
import sass from 'gulp-sass'
import uglify from 'gulp-uglify'
var supportedBrowsers = [
'Chrome >= 50',
'Firefox >= 46',
'Explorer >= 11',
'Safari >= 9',
'ChromeAndroid >= 50',
'FirefoxAndroid >= 46'
]
gulp.task('viewflow.scss', () => {
return gulp.src('./viewflow/frontend/static/viewflow/sass/*.scss')
.pipe(sass({
includePaths: ['./node_modules/', './viewflow/frontend/static/viewflow/scss/']
}).on(
'error', sass.logError
))
.pipe(postcss([
autoprefixer({
browsers: supportedBrowsers
})
]))
.pipe(gulp.dest(
'./viewflow/frontend/static/viewflow/css/'
))
})
gulp.task('default', [
'viewflow.scss',
])