google / web-starter-kit

Web Starter Kit - a workflow for multi-device websites
http://developers.google.com/web/starter-kit
Apache License 2.0
18.43k stars 3.02k forks source link

Feature: Swap out Gulp for a Module Bundler #880

Closed TheLarkInn closed 6 years ago

TheLarkInn commented 7 years ago

Is it really best to be promoting the use of Gulp as a processor of JS files optimized for the web?

Unless the use of babel is helping to remove duplicate file dependencies, assisting in supporting long term caching, etc. (Which it didn't appear that was the case), then it would be probably best to instead start promoting the use of one of the many Module Bundlers that are currently available.

There is webpack, browserify, Rollup(a better optimized bundle however less out of the tool features compared to webpack), or even Brunch.

All these are great alternatives, in comparison to having a task runner processing files.

Since I'm on the webpack core team, I am a little biased. However, the webpack team would be more than happy to help you guys make a transition over to it, if it's a path you would like to take! I think overall we should be discouraging the use of grunt/gulp/task runners to "bundle" files.

Let me know if we can be of assistance!

simonlc commented 7 years ago

wsk2 branch is using browserify along with rollupify.

gauntface commented 6 years ago

We'll switch to Rollup in the next version encouraging module imports / exports. More info in #940