From 60f154fb11c1cd2890ea08957b35a9834d62e053 Mon Sep 17 00:00:00 2001 From: Kodai Nakamura Date: Tue, 16 May 2017 21:56:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?archieved=20=E2=80=94>=20achieved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/chunkhash/README.md | 2 +- examples/chunkhash/template.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chunkhash/README.md b/examples/chunkhash/README.md index fdc167388..445831dfd 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 very simple solution to this problem is to create another chunk which contains only the webpack runtime (including chunkhash map). This can be archieved by the CommonsChunkPlugin (or if the CommonsChunkPlugin is already used by passing multiple names to the CommonChunkPlugin). 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 which contains only the webpack runtime (including chunkhash map). This can be achieved by the CommonsChunkPlugin (or if the CommonsChunkPlugin is already used by passing multiple names to the CommonChunkPlugin). 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: diff --git a/examples/chunkhash/template.md b/examples/chunkhash/template.md index c5d78617a..c6d4e1cf4 100644 --- a/examples/chunkhash/template.md +++ b/examples/chunkhash/template.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 very simple solution to this problem is to create another chunk which contains only the webpack runtime (including chunkhash map). This can be archieved by the CommonsChunkPlugin (or if the CommonsChunkPlugin is already used by passing multiple names to the CommonChunkPlugin). 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 which contains only the webpack runtime (including chunkhash map). This can be achieved by the CommonsChunkPlugin (or if the CommonsChunkPlugin is already used by passing multiple names to the CommonChunkPlugin). 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: