Build Tools

npm Scripts

Since you are already using npm, this is a great option because no additional tools to install and the configuration is easy. That said, it works best for small projects — when things get more complicated you will probably want Webpack for SPA’s or Rollup for libraries.

A couple of articles to get you started:

I have been using this method and really like it so far.

For a more advanced example that uses Javascript programs (via Node) to build your site, check out “You Might Not Need Gulp.js”.

Webpack

Webpack is pretty amazing, both during development and when making your production build.

Rollup

Often seen as a competitor to Webpack. It works really well when building a library (Facebook is now using it to build React), but Webpack is currently a better choice when making SPA’s.

Grunt

Grunt is now irrelevant. It’s slow and the configuration is ugly. Do not use.

Broccoli

This is used by EmberJS. Suppose to be fast, but the document is terrible and not many examples outside of Ember.

Gulp

This may now be more powerful than Grunt, but Webpack could make it obsolete.

Brunch

Want something newer and shinier? Brunch could be the answer. Give this one a try—the documentation is very good.