Commit e4586b11eaa9e3555a89294a091ea1f09a590664
1 parent
b13b4f7d
添加合并js插件,修复本地gulp deploy报错
Showing
2 changed files
with
3 additions
and
1 deletions
gulp/tasks/concat.js
| 1 | // 合并JS文件 | 1 | // 合并JS文件 |
| 2 | var gulp = require('gulp'); | 2 | var gulp = require('gulp'); |
| 3 | +var concat = require('gulp-concat'); | ||
| 3 | var config = require('../config').concat; | 4 | var config = require('../config').concat; |
| 4 | var handleErrors = require('../util/handleErrors'); | 5 | var handleErrors = require('../util/handleErrors'); |
| 5 | 6 | ||
| @@ -18,4 +19,4 @@ gulp.task('concat', function() { | @@ -18,4 +19,4 @@ gulp.task('concat', function() { | ||
| 18 | // .pipe(sass()) | 19 | // .pipe(sass()) |
| 19 | // .on('error', handleErrors) //交给notify处理错误 | 20 | // .on('error', handleErrors) //交给notify处理错误 |
| 20 | // .pipe(gulp.dest(config.dest)) | 21 | // .pipe(gulp.dest(config.dest)) |
| 21 | -// }); | ||
| 22 | \ No newline at end of file | 22 | \ No newline at end of file |
| 23 | +// }); |
package.json
| @@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
| 18 | "homepage": "https://github.com/xieyankun/layout#readme", | 18 | "homepage": "https://github.com/xieyankun/layout#readme", |
| 19 | "devDependencies": { | 19 | "devDependencies": { |
| 20 | "gulp": "^3.9.1", | 20 | "gulp": "^3.9.1", |
| 21 | + "gulp-concat": "^2.6.1", | ||
| 21 | "gulp-less": "^3.3.0", | 22 | "gulp-less": "^3.3.0", |
| 22 | "gulp-notify": "^3.0.0", | 23 | "gulp-notify": "^3.0.0", |
| 23 | "gulp-sass": "^2.3.2", | 24 | "gulp-sass": "^2.3.2", |