One thing I wanted was that when it makes the
src/autocompeter.js --> minify() --> dist/autocompeter.min.js step I also wanted to put in a little preample header into the minified file.
First I thought, since UglifyJS supports a
option that that'd be the route to go. I didn't get very far.
Then I thought I had to write my own plugin. So I started reading the documentation about how to write a plugin and partially thinking "Oh I don't have time to do this" and also "Oh finally a chance to sit down and really understand how gulp plugins work". I was wrong. The documentation for writing plugins say:
"Your plugin shouldn't do things that other plugins are responsible for... ...It should not add headers, gulp-header does that"
I'm starting to like gulp more and more. There's even a dedicate nice index of all available plugins.