fix es6 bug in gulpfile
This commit is contained in:
10
gulpfile.js
10
gulpfile.js
@ -81,7 +81,7 @@ function errorHandler() {
|
|||||||
|
|
||||||
gulp.task('inject', function() {
|
gulp.task('inject', function() {
|
||||||
gulp.src('views/home.jade')
|
gulp.src('views/home.jade')
|
||||||
.pipe(plumber({ errorHandler }))
|
.pipe(plumber({ errorHandler: errorHandler }))
|
||||||
.pipe(inject(gulp.src(bower()), {
|
.pipe(inject(gulp.src(bower()), {
|
||||||
//ignorePath: '/public'
|
//ignorePath: '/public'
|
||||||
}))
|
}))
|
||||||
@ -90,7 +90,7 @@ gulp.task('inject', function() {
|
|||||||
|
|
||||||
gulp.task('pack-client', function() {
|
gulp.task('pack-client', function() {
|
||||||
return gulp.src(webpackConfig.entry)
|
return gulp.src(webpackConfig.entry)
|
||||||
.pipe(plumber({ errorHandler }))
|
.pipe(plumber({ errorHandler: errorHandler }))
|
||||||
.pipe(webpack(Object.assign(
|
.pipe(webpack(Object.assign(
|
||||||
{},
|
{},
|
||||||
webpackConfig,
|
webpackConfig,
|
||||||
@ -101,7 +101,7 @@ gulp.task('pack-client', function() {
|
|||||||
|
|
||||||
gulp.task('pack-watch', function() {
|
gulp.task('pack-watch', function() {
|
||||||
return gulp.src(webpackConfig.entry)
|
return gulp.src(webpackConfig.entry)
|
||||||
.pipe(plumber({ errorHandler }))
|
.pipe(plumber({ errorHandler: errorHandler }))
|
||||||
.pipe(webpack(Object.assign(
|
.pipe(webpack(Object.assign(
|
||||||
{},
|
{},
|
||||||
webpackConfig,
|
webpackConfig,
|
||||||
@ -112,7 +112,7 @@ gulp.task('pack-watch', function() {
|
|||||||
|
|
||||||
gulp.task('pack-node', function() {
|
gulp.task('pack-node', function() {
|
||||||
return gulp.src(webpackConfigNode.entry)
|
return gulp.src(webpackConfigNode.entry)
|
||||||
.pipe(plumber({ errorHandler }))
|
.pipe(plumber({ errorHandler: errorHandler }))
|
||||||
.pipe(webpack(webpackConfigNode))
|
.pipe(webpack(webpackConfigNode))
|
||||||
.pipe(gulp.dest(webpackConfigNode.output.path));
|
.pipe(gulp.dest(webpackConfigNode.output.path));
|
||||||
});
|
});
|
||||||
@ -169,7 +169,7 @@ gulp.task('lint', function() {
|
|||||||
|
|
||||||
gulp.task('less', function() {
|
gulp.task('less', function() {
|
||||||
return gulp.src('./public/css/*.less')
|
return gulp.src('./public/css/*.less')
|
||||||
.pipe(plumber({ errorHandler }))
|
.pipe(plumber({ errorHandler: errorHandler }))
|
||||||
.pipe(less({
|
.pipe(less({
|
||||||
paths: [ path.join(__dirname, 'less', 'includes') ]
|
paths: [ path.join(__dirname, 'less', 'includes') ]
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user