From 3d571a60c21a3fa59d2bf427aa9449e0b732c1d8 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 14 Mar 2018 20:43:27 +0100 Subject: [PATCH] More comments --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 4d54acf44..0f2287fa9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -151,6 +151,10 @@ const config = { // We follow this article for stable hashes. // https://medium.com/webpack/predictable-long-term-caching-with-webpack-d3eee1d3fa31 + // + // Chunks without names do not seem to work, so + // we have to make sure they are always named. + // https://github.com/webpack/webpack/tree/master/examples/code-splitting-specify-chunk-name new webpack.NamedModulesPlugin(), new webpack.NamedChunksPlugin(), new NameAllModulesPlugin(),