Giter Club home page Giter Club logo

Comments (9)

northdrift avatar northdrift commented on June 14, 2024 4

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

from umi-plugin-antd-theme.

infnan avatar infnan commented on June 14, 2024 1

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

from umi-plugin-antd-theme.

jtbss avatar jtbss commented on June 14, 2024 1

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

from umi-plugin-antd-theme.

lifeneedspassion avatar lifeneedspassion commented on June 14, 2024

我的电脑都可以煎蛋了

from umi-plugin-antd-theme.

chenvd avatar chenvd commented on June 14, 2024

确实有这个问题

from umi-plugin-antd-theme.

pccai avatar pccai commented on June 14, 2024

现在这个开关有吗?

from umi-plugin-antd-theme.

jtbss avatar jtbss commented on June 14, 2024

totally agree !

from umi-plugin-antd-theme.

YaoKaiPeng avatar YaoKaiPeng commented on June 14, 2024

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

from umi-plugin-antd-theme.

chenkuangkuang avatar chenkuangkuang commented on June 14, 2024

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

from umi-plugin-antd-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.