From 51d88cd4f9e00e6c276008b01f7c2a199306d3d4 Mon Sep 17 00:00:00 2001 From: Albus Dumbledore Date: Thu, 27 Feb 2020 22:10:46 +0530 Subject: [PATCH] docs(chunkhash): Improve README.md --- examples/chunkhash/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index 05af0eb77..28813d40a 100644 --- a/examples/chunkhash/README.md +++ b/examples/chunkhash/README.md @@ -1,6 +1,6 @@ -A common challenge with combining `[chunkhash]` and Code Splitting is that the entry chunk includes the webpack runtime and with it the chunkhash mappings. This means it's always updated and the `[chunkhash]` is pretty useless, because this chunk won't be cached. +A common challenge with combining `[chunkhash]` and Code Splitting is that, the entry chunk includes the webpack runtime and with it the chunkhash mappings. This means it's always updated and the `[chunkhash]` is pretty useless because this chunk won't be cached. -A very simple solution to this problem is to create another chunk which contains only the webpack runtime (including chunkhash map). This can be achieved with the `optimization.runtimeChunk` options. To avoid the additional request for another chunk, this pretty small chunk can be inlined into the HTML page. +A very simple solution to this problem is to create another chunk that contains only the webpack runtime (including chunkhash map). This can be achieved with the `optimization.runtimeChunk` options. To avoid the additional request for another chunk, this pretty small chunk can be inlined into the HTML page. The configuration required for this is: