flex/gulpfile.js

17 lines
422 B
JavaScript
Raw Normal View History

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 () {
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'
}))
.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']);