forked from Evarisk/DigiQuali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
30 lines (26 loc) · 841 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
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass')(require('sass'));
var rename = require('gulp-rename');
var autoprefixer = require('gulp-autoprefixer');
var paths = {
scss_core : [ 'css/scss/**/*.scss', 'css/' ]
};
/** Core */
gulp.task( 'scss_core', function() {
return gulp.src( paths.scss_core[0] )
.pipe(sass({'outputStyle': 'expanded'}).on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}) )
.pipe(rename('./dolismq.css'))
.pipe(gulp.dest(paths.scss_core[1]))
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(rename('./dolismq.min.css'))
.pipe(gulp.dest( paths.scss_core[1]));
});
/** Watch */
gulp.task('default', function() {
gulp.watch(paths.scss_core[0], gulp.series('scss_core'));
});