Skip to content

Commit 12babff

Browse files
lufeverposva
authored andcommitted
Webpack 中的 [code splitting feature]介绍已经有中文页面了 (vuejs#1498)
1 parent 42836cf commit 12babff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/advanced/lazy-loading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
当打包构建应用时,Javascript 包会变得非常大,影响页面加载。如果我们能把不同路由对应的组件分割成不同的代码块,然后当路由被访问的时候才加载对应组件,这样就更加高效了。
44

5-
结合 Vue 的 [异步组件](http://vuejs.org/guide/components.html#Async-Components) 和 Webpack 的 [code splitting feature](https://webpack.js.org/guides/code-splitting-require/), 轻松实现路由组件的懒加载。
5+
结合 Vue 的 [异步组件](http://vuejs.org/guide/components.html#Async-Components) 和 Webpack 的 [code splitting feature](https://doc.webpack-china.org//guides/code-splitting-async/#require-ensure-/), 轻松实现路由组件的懒加载。
66

77
我们要做的就是把路由对应的组件定义成异步组件:
88

0 commit comments

Comments
 (0)