如题如何实现按需加载!!!!
先参考这个看看 https://webpack.js.org/guides/code-splitting/
可以看看这个: https://github.com/xiaotuni/react-webpack-demo。
下面这篇文章说的很清楚了,也可以看我项目的源码实现 https://github.com/YutHelloWorld/vortex-react https://serverless-stack.com/chapters/code-splitting-in-create-react-app.html
谢了,大神!
可以看看这篇帖子[quote=“mr.gong, post:6, topic:15652, full:true”] [/quote]
授人以鱼不如授人以渔