Slide 10
Slide 10 text
const plugins = [
new webpack.optimize.CommonsChunkPlugin({
name: "vendor",
minChunks: Infinity,
filename: "js/vendor.bundle-[chunkhash:8].js"
}),
new webpack.optimize.CommonsChunkPlugin({
async: true,
children: true,
minChunks: 4,
filename: "js/commonlazy-[chunkhash:8].js"
}),
new webpack.optimize.CommonsChunkPlugin({
name: "runtime"
})
];
Checklist
➔ Configure webpack
▢ Use Dynamic Imports
▢ Configure routes to load async
bundle