You are here:Home-Tools-Webpack – Introduction to Webpack 2

Webpack – Introduction to Webpack 2

Why webpack?

Much like any other aspect of web development, there isn’t a standard for which build tool to use. Right now, developers have to choose between webpack, Gulp, Browserify, NPM scripts, Grunt, and like 10 others. There are many in-depth comparisons out there, but all of these tools are very similar, so most of the time it comes down to personal preference and what project you are working on.

Here are some pros and cons to help you decide whether webpack is the tool for you:

Pros:

Great for working with singe-page apps
Accepts both require() and import module syntaxes
Allows for very advanced code splitting
Hot Reload for quicker development with React, Vue.js and similar frameworks
Мost popular build tool according to the 2016 JavaScript survey
Cons:

Not suitable for beginners in web development
Working with CSS files, images, and other non-JS resources is confusing at first
Documentation could be better
Changes a lot, even most 2016 tutorials are already outdated

By | 2017-10-19T00:46:28+00:00 October 18th, 2017|Categories: Tools|0 Comments

About the Author:

Front-End Engineer

Leave A Comment