Git Product home page Git Product logo

Comments (5)

fz6m avatar fz6m commented on May 27, 2024

第三方包必须是规范的,只能有 css 。

from cra-v5-with-mfsu-example.

zhubinda avatar zhubinda commented on May 27, 2024

image

webpack.config中babel-plugin-import来引入antd样式时会有以下报错(antd版本4.16.13)

image

这需要做怎样的配置处理,难道要手动引入样式吗

from cra-v5-with-mfsu-example.

fz6m avatar fz6m commented on May 27, 2024

在开发的时候不需要使用按需 antd 插件,仅生产构建的时候再加入这个插件。

开发时,样式可以通过 less-loader 、babel 插件等手段添加 antd/dist/antd.less or antd/dist/antd.min.css 全量样式。

from cra-v5-with-mfsu-example.

zhubinda avatar zhubinda commented on May 27, 2024

image

大佬,这边为什么要将shared的依赖也不被 MFSU 处理,react,react-router,antd等依赖不配置shared会报错,配置shared后不被MFSU处理,构建速度就不会很显著

from cra-v5-with-mfsu-example.

fz6m avatar fz6m commented on May 27, 2024

这个 shared 是 eager 需要的,独立使用的时候用不到的,独立使用 mfsu 仅限于 esbuild 。

from cra-v5-with-mfsu-example.

Related Issues (4)

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.