From c2eb543b5234be9a3c976312f7b189ce05e3bf5a Mon Sep 17 00:00:00 2001 From: Nhan Doan <2561973+nhantdn@users.noreply.github.com> Date: Mon, 30 Mar 2020 20:47:52 +0700 Subject: [PATCH] Update outdated URL in code-splitting.md (#2870) * Update outdated URL Next.js Dynamic Import. * Update code-splitting.md Co-authored-by: Alexey Pyltsyn --- content/docs/code-splitting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index e56509b8..9471ac28 100644 --- a/content/docs/code-splitting.md +++ b/content/docs/code-splitting.md @@ -97,7 +97,7 @@ import("./math").then(math => { When Webpack comes across this syntax, it automatically starts code-splitting your app. If you're using Create React App, this is already configured for you and you can [start using it](https://facebook.github.io/create-react-app/docs/code-splitting) immediately. It's also supported -out of the box in [Next.js](https://github.com/zeit/next.js/#dynamic-import). +out of the box in [Next.js](https://nextjs.org/docs/advanced-features/dynamic-import). If you're setting up Webpack yourself, you'll probably want to read Webpack's [guide on code splitting](https://webpack.js.org/guides/code-splitting/). Your Webpack config should look vaguely [like this](https://gist.github.com/gaearon/ca6e803f5c604d37468b0091d9959269).