ruk·si

📦️ Webpack

Updated at 2016-01-18 01:52

Webpack is a module bundler. It allows stuff like automatic dependency loading and minifying JavaScript files.

Loaders are single file transforms. Function that takes a source and returns a new source

80% of source code is in plugins. Plugins hook in to compiler lifecycle. Basically, plugin can do anything a loader cannot. Uglify, minification, adding extra files, create source maps.