We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
见文档: https://webpack.js.org/guides/code-splitting/
主要实现由三种:
重点讲一下第三种,动态import(),import()是ecma提案中的一个,返回一个promise。在webpack里面可以这么用,结合注释webpackChunkName来生成动态的chunk:
webpackChunkName
import(/* webpackChunkName: "lodash" */ 'lodash').then(_ => { // something })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
见文档: https://webpack.js.org/guides/code-splitting/
主要实现由三种:
重点讲一下第三种,动态import(),import()是ecma提案中的一个,返回一个promise。在webpack里面可以这么用,结合注释
webpackChunkName
来生成动态的chunk:The text was updated successfully, but these errors were encountered: