webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging
Master webpack with me.
- entry
- output
- loaders, and
- mode
You can use webpack on your command line interface like this > npx webpack src/App.js --output app.bundle.js --mode "development"
Or use webpack in the default file of webpack.config.js and run >> npx webpack, Either the use of CLI or config file, it all up to you. But I seem to be enjoying webpack join me and lets catch fun.