Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid sharing _options across multiple streams (#69)
Before this commit, variable _options is sharing multiple streams. It causes problems. _options.rebaseTo that was always set first is used. If we have below files and gulpfile.js, rebaseTo was always `<PROJECT_ROOT>/scss/entries/lp/lp1/css`, and never `<PROJECT_ROOT/scss/entries/lp/lp2/subpage/css>` ``` scss/entries/lp/lp1/css/index.scss scss/entries/lp/lp2/subpage/css/index.scss gulp .src('scss/entries/**/*.scss') .pipe(plumber()) .pipe(sass()) .pipe(cleanCSS()) // rebaseTo always 'scss/entries/apps/app1/css/', .pipe(gulp.dest('public/')); ```
- Loading branch information