heron2014 / react-todo

0 stars 0 forks source link

why does webpack exist? #6

Open heron2014 opened 8 years ago

heron2014 commented 8 years ago

Webpack, at its core, is a code bundler. It takes your code, transforms and bundles it, then returns a brand new version of your code.

There are three main steps and three main things Weback needs to know: 1) Webpack needs to know the starting point of your application, or your root JavaScript file.

2) Webpack needs to know which transformations to make on your code.

3) Webpack needs to know to which location it should save the new transformed code.