Skip to content

Commit ab56f2c

Browse files
committed
fix(gulp): exclude inject:scriptExt if using plain CSS
closes #1504
1 parent 7cea6f1 commit ab56f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: app/templates/gulpfile.babel(gulp).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ gulp.task('inject:css', () => {
225225
transform: (filepath) => '<link rel="stylesheet" href="' + filepath.replace(`/${clientPath}/`, '').replace('/.tmp/', '') + '">'
226226
}))
227227
.pipe(gulp.dest(clientPath));
228-
});
228+
});<% if(!filters.css) { %>
229229

230230
gulp.task('inject:<%= styleExt %>', () => {
231231
return gulp.src(paths.client.mainStyle)
@@ -245,7 +245,7 @@ gulp.task('inject:<%= styleExt %>', () => {
245245
}
246246
}))
247247
.pipe(gulp.dest(`${clientPath}/app`));
248-
});
248+
});<% } %>
249249

250250
gulp.task('styles', () => {
251251
return gulp.src(paths.client.mainStyle)

0 commit comments

Comments
 (0)