mirror of
https://github.com/papercss/papercss
synced 2024-06-20 14:45:01 +02:00
improved build time
This commit is contained in:
parent
e317fad536
commit
4914e2477e
10
gulpfile.js
10
gulpfile.js
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
const gulp = require('gulp'),
|
||||
connect = require('gulp-connect'),
|
||||
sass = require('gulp-sass'),
|
||||
|
@ -24,10 +26,10 @@ gulp.task('watch', function () {
|
|||
});
|
||||
|
||||
gulp.task('minify-css', () => {
|
||||
gulp.src('dist/paper.css')
|
||||
.pipe(cleanCSS())
|
||||
.pipe(rename('paper.min.css'))
|
||||
.pipe(gulp.dest('dist'));
|
||||
return gulp.src('src/**/*.scss')
|
||||
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
|
||||
.pipe(rename('paper.min.css'))
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('default', ['sass', 'webserver', 'watch']);
|
||||
|
|
Loading…
Reference in a new issue