Webpack 2 Deep Dive Webpack 2 Deep Dive

Exercise: Adding Commons Chunking Part 3

Kent concludes the commons chunking exercise by adding unique ID’s for each asset. Once these ID’s are added, the index.html file needs to be dynamically updated with these new names whenever the application is built. Kent adds the HTMLWebpack Plugin and configures Webpack to inject the generated bundle.js file into the <head> section of index.html. The final solution to this exercise is on the FEM/06.0-commons-chunk branch.
Get Unlimited Access Now