Node.js/nuxt/组件加载方式:修订间差异
来自康健生活
| 第37行: | 第37行: | ||
] | ] | ||
})</syntaxhighlight> | })</syntaxhighlight> | ||
nuxt 抛出错误 | |||
{{Warning|Cannot read property 'apply' of undefined}} | |||
==== require.ensure ==== | ==== require.ensure ==== | ||
通过参数中的 webpackChunkName 将 js 分开打包(可能会有资源访问不到的情况) | 通过参数中的 webpackChunkName 将 js 分开打包(可能会有资源访问不到的情况) | ||