1 Star 0 Fork 84

我们好像在哪儿见过/ajaxUpload

forked from RockYang/Uploader 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gulpfile.js 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
RockYang 提交于 2016-06-04 18:08 . 修复css兼容性bug
//install first: npm install gulp gulp-uglify gulp-clean-css gulp-rename --save-dev
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
cleancss = require('gulp-clean-css'),
rename = require('gulp-rename');
//compress js code
gulp.task('minifyjs', function() {
gulp.src('TUpload/TUpload.js').pipe(rename({suffix:'.min'})).pipe(uglify()).pipe(gulp.dest('TUpload'));
gulp.src('BUpload/BUpload.js').pipe(rename({suffix:'.min'})).pipe(uglify()).pipe(gulp.dest('BUpload'));
gulp.src('JUpload/JUpload.js').pipe(rename({suffix:'.min'})).pipe(uglify()).pipe(gulp.dest('JUpload'));
return true;
});
//compress css code
gulp.task('minifycss', function() {
gulp.src(['TUpload/css/upload.css']).pipe(rename({suffix:'.min'})).pipe(cleancss()).pipe(gulp.dest('TUpload/css'));
gulp.src(['BUpload/css/upload.css']).pipe(rename({suffix:'.min'})).pipe(cleancss()).pipe(gulp.dest('BUpload/css'));
gulp.src(['JUpload/css/upload.css']).pipe(rename({suffix:'.min'})).pipe(cleancss()).pipe(gulp.dest('JUpload/css'));
return true;
});
gulp.task('default', function() {
gulp.start('minifyjs');
gulp.start('minifycss');
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yuxuanxinchen/ajaxUpload.git
git@gitee.com:yuxuanxinchen/ajaxUpload.git
yuxuanxinchen
ajaxUpload
ajaxUpload
master

搜索帮助