-
Notifications
You must be signed in to change notification settings - Fork 21
/
gulpfile.js
31 lines (23 loc) · 957 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
// Gulp tasks
var gulp = require('gulp'),
prefix = require('gulp-autoprefixer'),
minifyCSS = require('gulp-minify-css'),
sass = require('gulp-sass'),
size = require('gulp-size'),
rename = require('gulp-rename');
// Build Pintsize scss into css
gulp.task('build', function(){
gulp.src('./src/pintsize.scss')
.pipe(sass())
.pipe(size({gzip: false, showFiles: true, title:'un-prefixed css'}))
.pipe(size({gzip: true, showFiles: true, title:'un-prefixed gzipped css'}))
.pipe(prefix())
.pipe(size({gzip: false, showFiles: true, title:'prefixed css'}))
.pipe(size({gzip: true, showFiles: true, title:'prefixed css'}))
.pipe(gulp.dest('./dist'))
.pipe(minifyCSS())
.pipe(rename('pintsize.min.css'))
.pipe(gulp.dest('./dist'))
.pipe(size({gzip: false, showFiles: true, title:'minified css'}))
.pipe(size({gzip: true, showFiles: true, title:'minified css'}))
});