-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent direction in using modules directly or using gulp wrappers #2027
Comments
The errors have not changed. This is a deficiency in nodejs streams. I'll address your other issue separately because there's something we can improve there. P.S. - You need to research your modules more thoroughly before installing because |
Thanks, I tried a couple This issue is more about consistency with using wrappers, or not, however. This is open mostly for doc purposes. It seems like there is encouragement to just use the node modules themselves, but the recipes definitely mix-and-match, so its not quite clear. |
Recipes are made to be used verbatim. They are a starting point for people that want to copy-paste. I get the sense that you are much further down the learning path if you are trying to be minimalist and should probably dig into some blog posts about node streams. That being said, I think what you're asking about would make for a good Sip (bite-sized blog posts on advanced topics) so I've opened an issue at gulpjs/gulpjs.github.io#145 |
Sounds good! Yeah, I'm coming back to |
Thanks for the idea, @janiceilene has written the Sip for this at https://medium.com/gulpjs/gulp-sips-how-we-use-streams-d7790b22bf1a |
This is a bit new since I last setup a gulp project, but:
Mixes & matches
gulp-
wrappers & plain ol' node modules. This becomes a bit problematic when altering scripts to your own use and you run into incompatibilities. For example, I'm tweaking:And getting this kind of error:
Being confused, I swap
gulp-uglify
for justuglify
and get a different error:I did do:
before running
gulp scripts
, which gives me a different error:Similar to the other issue I just created, #2026, errors are much less friendly than they used to be. Is it preferable to use modules directly? To use the wrappers? Its not clear why the example with the
.pipe
to the source map plugin would work but when I drop that and just.pipe
to uglify I get errors.Thanks!
The text was updated successfully, but these errors were encountered: