1 Star 0 Fork 66

hedden/audittest

forked from sunny/audittest 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Gulpfile.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
若雨成霜 提交于 2018-08-30 09:46 . #
var gulp = require('gulp'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
concat = require('gulp-concat'),
watch = require('gulp-watch');
gulp.task('jsmin', function () {
return gulp.src(['src/main/webapp/assets/js/o/test23596.js', 'src/main/webapp/assets/js/o/aesutil.js', 'src/main/webapp/assets/js/o/angular.min.js'])
.pipe(uglify({mangle: true, compress: true,}))
.pipe(gulp.dest('src/main/webapp/assets/js/'));
});
gulp.task('concat', ['jsmin'], function() {
return gulp.src(['src/main/webapp/assets/js/angular.min.js', 'src/main/webapp/assets/js/o/aes.js', 'src/main/webapp/assets/js/o/pbkdf2.js', 'src/main/webapp/assets/js/aesutil.js', 'src/main/webapp/assets/js/test23596.js'])
.pipe(concat({ path: 'test.js', newLine: ';'}))
.pipe(gulp.dest('src/main/webapp/assets/js/'));
});
gulp.task('watch', function(){
return watch('src/main/webapp/assets/js/o/test23596.js', function () {
gulp.start('concat');
})});
gulp.task('default', ['jsmin', 'concat', 'watch']);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hedden/audittest.git
[email protected]:hedden/audittest.git
hedden
audittest
audittest
master

搜索帮助