Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-cli升级webpack到2.x以后vue-router的懒加载方式不能被支持了 #349

Closed
shangxinbo opened this issue Feb 13, 2017 · 1 comment

Comments

@shangxinbo
Copy link

const Foo = resolve => {
  // require.ensure 是 Webpack 的特殊语法,用来设置 code-split point
  // (代码分块)
  require.ensure(['./Foo.vue'], () => {
    resolve(require('./Foo.vue'))
  })
}

require不再被支持了

@egoist
Copy link
Collaborator

egoist commented Feb 13, 2017

template 相关 issue 请发到相应 template repo 里。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants