fix code splitting example
This commit is contained in:
parent
dee15a64e3
commit
a1a087c4be
1 changed files with 2 additions and 2 deletions
|
|
@ -391,9 +391,9 @@ Fortunately, there are a number of tools that facilitate the task of bundling mo
|
||||||
```javascript
|
```javascript
|
||||||
m.route(document.body, "/", {
|
m.route(document.body, "/", {
|
||||||
"/": {
|
"/": {
|
||||||
onmatch: function(use) {
|
onmatch: function(vnode, resolve) {
|
||||||
// using Webpack async code splitting
|
// using Webpack async code splitting
|
||||||
require(['./Home.js'], use)
|
require(['./Home.js'], resolve)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue