Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Return gulp streams in tasks. #110

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = (gulp, config) => {
* Script Task
*/
gulp.task('scripts', () => {
gulp
return gulp
.src(config.paths.js)
.pipe(sourcemaps.init())
.pipe(
Expand All @@ -57,7 +57,7 @@ module.exports = (gulp, config) => {
* Task for minifying images.
*/
gulp.task('imagemin', () => {
gulp
return gulp
.src(config.paths.img)
.pipe(
imagemin([
Expand All @@ -76,7 +76,7 @@ module.exports = (gulp, config) => {
* Task for generating icon colors/png fallbacks from svg.
*/
gulp.task('icons', () => {
gulp
return gulp
.src('**/*.svg', { cwd: `${config.paths.icons}` })
.pipe(svgSprite(config.iconConfig))
.pipe(gulp.dest('.'));
Expand Down