-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Allow dynamic route and code split configable #470
Comments
这个功能还是没有啊 如何让后端自由生成页面呢? |
@wunayou 自由生成是什么意思? |
@chenshuai2144 这块明天能搞定么?默认 code split 现在给内部发布流程带来很大的困扰,可配置后默认关闭好了。 |
@afc163 没有问题. 明天上午12点左右提交 |
@chenshuai2144 就是说地址相同 但是加载组件可以不同 或者地址不同 加载相同的组件, 让后台根据参数 生成页面,让他们自由搭配组件 |
这个应该用模板生成器吧.... |
能不能默认就不用动态加载。代码里留下比较方便的做动态加载的可能性和注释加文档。 |
对,这是这个 issue 的目标。 |
如果用代码的方法实现..改动太大了. |
书写方式统一,默认关闭,一键打开。 打包成一个文件对于部署方式的技术要求会简单很多。 |
babel得方式行不通 |
直接处理 |
怎么处理? |
把 |
让我试一试。 好像没有别人想要去掉代码分割。都是教怎么开启代码分割的。 |
又失败了 。看见babel就恶心。。。。。 |
现在觉得写备注也能接受了 |
通过 babel 插件改代码就好了吧,业务 JS 全走 babel 转换的。 |
可以,加个 |
貌似 ant-design-pro/src/common/router.js Lines 13 to 53 in 40e95db
|
这应该就加在 antd-design-pro 里吧。 |
并在发布部署那里增加相关文档说明。
The text was updated successfully, but these errors were encountered: