chenshuai2144 / umi-plugin-antd-theme

🎨 Best theme plugin
https://preview.pro.ant.design/
MIT License
85 stars 29 forks source link

umi3版本下,开发时每次修改代码都会导致theme build,效率低下 #19

Closed YaoKaiPeng closed 3 years ago

YaoKaiPeng commented 4 years ago

umi3版本下,开发时每次修改代码都会导致theme build,效率太低。 能否开放配置, 不自动使用theme build

lifeneedspassion commented 4 years ago

我的电脑都可以煎蛋了

chenvd commented 4 years ago

确实有这个问题

infnan commented 4 years ago

建议增加一个可以配置的开关,平时能让开发人员临时禁用插件。因为build速度太慢,我们现在不得不在平时把umi-plugin-antd-theme彻底删掉,打包之前再把插件补回package.json。

pccai commented 4 years ago

现在这个开关有吗?

jtbss commented 3 years ago

totally agree !

jtbss commented 3 years ago

you can manually add the plugin in different environments like this. So you are unnecessary to add the plugin name back to package.json. config prod

YaoKaiPeng commented 3 years ago

you can manually add the plugin in different environments like this. So you are unnecessary to add the plugin name back to package.json. config prod

thx!This method should be feasible, thanks for the answer

northdrift commented 3 years ago

可以暂时自己写个插件,根据环境情况警禁用掉一些插件 image image

chenkuangkuang commented 2 years ago

我的方案是修改umi-plugin-antd-theme依赖源文件,加一个判断,配合启用mfsu,可实现效果和热更新效率的兼顾 重点就是下面的renderLess耗时 Snipaste_2021-10-28_15-07-22