'use strict'; var filter = require('gulp-filter'); var gulpIgnore = require('gulp-ignore'); var bytediff = require('gulp-bytediff'); var plumber = require('gulp-plumber'); var uglify = require('gulp-uglify'); var minifyCss = require('gulp-minify-css'); var imagemin = require('gulp-imagemin'); var pngquant = require('imagemin-pngquant'); var htmlminify = require("gulp-html-minify");
module.exports = function() { var excludeJs = []; this.opts.apps.forEach(function(item){ excludeJs.push('**/'+item+'/js/{**,*.*}'); excludeJs.push('!**/'+item+'/js/partials/{**,*.*}'); }); excludeJs.push('**/js/{**,*.*}'); excludeJs.push('!**/js/i18n/{**,*.*}'); excludeJs.push('!**/js/server/{**,*.*}'); excludeJs.push('!**/js/zeroclipboard/{**,*.*}'); excludeJs.push('!**/js/layer/{**,*.*}'); excludeJs.push('!**/js/My97DatePicker/{**,*.*}'); excludeJs.push('!**/js/echarts/province.min.js'); var filterJs = filter(['**/*.js'], {restore: true}); var filterCss = filter(['**/*.css'], {restore: true}); var filterImg = filter(['**/*.{png,jpg,gif}'], {restore: true}); var filterHtml = filter(['**/*.html'], {restore: true});
'use strict'; var fs = require('fs'); var path = require('path'); var merge = require('merge-stream'); var fileconcat = require('gulp-file-concat'); var uglify = require('gulp-uglify'); var ngAnnotate = require('gulp-ng-annotate'); var rename = require('gulp-rename');
'use strict'; var fs = require('fs'); var path = require('path'); var fileconcat = require('gulp-file-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename');