Git Product home page Git Product logo

Comments (4)

JSupot avatar JSupot commented on May 23, 2024 2

另外,为什么引用render组件会污染全局主题呢?很不理解。

form-render里面对于antd的组件使用的是css样式文件,这个样式是antd的默认主题,并且在webpack打包的时候antd组件的css样式文件的优先级高于自定义主题less文件的优先级,所以会产生自定义主题失效的问题

WebpackPluginFrTheme这个插件在webpack收集依赖之前,对form-render的antd组件样式进行动态替换,通过babel分析语法,将css文件替换成less文件,这样就不会污染自定义主题了

from x-render.

phoema avatar phoema commented on May 23, 2024

另外,为什么引用render组件会污染全局主题呢?很不理解。

from x-render.

huapeng222 avatar huapeng222 commented on May 23, 2024

同问,在umi中如何使用WebpackPluginFrTheme

from x-render.

BlueYeah avatar BlueYeah commented on May 23, 2024

同问,在umi中如何使用WebpackPluginFrTheme

chainWebpack(config, { webpack }) {
config.plugin('WebpackPluginFrTheme').use(WebpackPluginFrTheme)
}

  1. or try npm update

from x-render.

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.