2015-07-19 02:20:09 +02:00
|
|
|
var gulp = require('gulp'),
|
|
|
|
less = require('gulp-less'),
|
|
|
|
rename = require('gulp-rename'),
|
2016-02-03 16:32:25 +01:00
|
|
|
minify = require('gulp-cssnano');
|
2015-07-19 02:20:09 +02:00
|
|
|
|
|
|
|
gulp.task('less', function () {
|
2016-02-22 19:52:48 +01:00
|
|
|
return gulp.src('./static/stylesheet/style.less')
|
2015-07-19 02:20:09 +02:00
|
|
|
.pipe(less())
|
2015-10-07 02:19:34 +02:00
|
|
|
.pipe(minify())
|
|
|
|
.pipe(rename({
|
|
|
|
extname: '.min.css'
|
|
|
|
}))
|
2016-02-22 19:52:48 +01:00
|
|
|
.pipe(gulp.dest('./static/stylesheet'));
|
2015-07-19 02:20:09 +02:00
|
|
|
});
|
|
|
|
|
2015-10-07 02:19:34 +02:00
|
|
|
gulp.task('default', ['less']);
|