before Webpack.config.js we need to understand what is Webpack. Webpack is a module bundler. which is used to configure or make our javascript browser understandable like ES2015, ES6 and JSX file into vanilla JavaScript. Why we use Webpack.config.js Webpack takes all of our assets and outputs them to a production-ready bundle. Bundles JavaScripts into one file.