forked from haubek/bootstrap4c-custom-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
22 lines (21 loc) · 825 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
// gulp + gulp plug-ins
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-sass');
var rename = require("gulp-rename");
var cleanCSS = require('gulp-clean-css');
var stripCssComments = require('gulp-strip-css-comments');
// build
gulp.task('build', function() {
gulp.src(['./src/scss/build.scss'])
.pipe(plumber())
.pipe(sass())
.pipe(autoprefixer({browsers: ['last 2 versions']}))
.pipe(rename("component-custom-switch.css"))
.pipe(gulp.dest('./dist/css/'))
.pipe(cleanCSS({compatibility: '*'}))
.pipe(stripCssComments({all: true}))
.pipe(rename("component-custom-switch.min.css"))
.pipe(gulp.dest('./dist/css/'));
});