I\'m new to webpack and I\'m trying to understand loaders as well as its properties such as test, loader, include etc.
Here is a sample snippet of webpack.config.js that
In webpack config there are multiple things for configuration, important ones are
output - the final bundle you want to create. if you specify for example
output: { filename: "[name].bundle.js", vendor: "react" }
Then your application js files will be bundled as main.bundle.js and react in a vendor.js files. It is an error if you do not use both in html page.
Hope it helped