notebook/gulpfile.js

18 lines
489 B
JavaScript
Raw Normal View History

2015-04-15 05:35:43 +08:00
var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');
var minifyCSS = require('gulp-minify-css');
var rename = require('gulp-rename');
gulp.task('less', function () {
return gulp.src('./jupyter_notebook/static/style/*.less')
.pipe(less({
paths: [ path.join(__dirname, 'less', 'includes') ]
}))
.pipe(minifyCSS())
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest('./jupyter_notebook/static/style'));
});