Rather than including each JavaScript file in the index.html, Webpack can be used to bundle script files based on CommonJS require statement. Kent adds these require statements to the app.js file and also spends a few minutes explaining the value of using the pathInfo configuration variable. Code for this example is located on the FEM/01.2-require-everything branch. - http://slides.com/kentcdodds/webpack-deep-dive#/8/2
Get Unlimited Access Now