Skip to content

Commit 022b6bb

Browse files
committed
fix: should reject error in test mode
1 parent a283d10 commit 022b6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dumber/gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function buildJs(src) {
129129
// @endif
130130

131131
return gulp.src(src, {sourcemaps: !isProduction})
132-
.pipe(gulpif(!isProduction, plumber()))
132+
.pipe(gulpif(!isProduction && !isTest, plumber()))
133133
.pipe(au2())
134134
.pipe(transpile);
135135
}
@@ -154,7 +154,7 @@ function buildHtml(src) {
154154
function buildCss(src) {
155155
return gulp.src(src, {sourcemaps: !isProduction})
156156
// @if less
157-
.pipe(gulpif(!isProduction, plumber()))
157+
.pipe(gulpif(!isProduction && !isTest, plumber()))
158158
.pipe(less())
159159
// @endif
160160
// @if sass

0 commit comments

Comments
 (0)