You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hotkeys/gulpfile.js

25 lines
622 B
JavaScript

var gulp = require('gulp');
var watch = require('gulp-watch');
var stylus = require('gulp-stylus');
// var rename = require("gulp-rename");
var nib = require('nib');
gulp.task('default', function() {
// 将你的默认的任务代码放在这
});
// 侦听文件改变执行任务
gulp.task('watch', function (cb) {
gulp.watch('./src/style.styl', ['stylus']);
});
// RUI CSS 生成
gulp.task('stylus', function () {
gulp.src('./src/style.styl')
.pipe(stylus({
compress:true,
use: nib()
}))
// .pipe(rename('RUI.min.css'))
.pipe(gulp.dest('./src/'));
});