-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
34 lines (29 loc) · 1008 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
34
'use strict';
var gulp = require('gulp');
var watch = require('gulp-watch');
var concat = require('gulp-concat');
var sass = require('gulp-sass')(require('sass'));
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
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( './doliletter.css' ) )
.pipe( gulp.dest( paths.scss_core[1] ) )
.pipe( sass({outputStyle: 'compressed'}).on( 'error', sass.logError ) )
.pipe( rename( './doliletter.min.css' ) )
.pipe( gulp.dest( paths.scss_core[1] ) );
});
/** Watch */
gulp.task( 'default', function() {
gulp.watch( paths.scss_core[0], gulp.series('scss_core') );
});