Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Webpack

Webpack is a module bundler, its main purpose is to bundle all the dependent files into a single .js file which helps optimize the page load. Apart from bundling webpack can also be used as a task runner by configuring a sequence of tasks in the build process like cleanup target folder, bundle files, copy files etc. Webpack by itself is a big topic, in this post we shall see the minimal configuration required in webpack to bundle and load a React Application.

Webpack is configuration driver, remember we created a file in the webpack.config.js previous Hello World post, this is the webpack configuration file. The most minimal webpack configuration includes and entry (input) and an output.


This post first appeared on C# Guide, please read the originial post: here

Share the post

Webpack

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×