Giter Site home page Giter Site logo

Comments (5)

HeskeyBaozi avatar HeskeyBaozi commented on July 27, 2024 1

Use umd.js in https://unpkg.com/@ant-design/icons@next/lib/
it export all icons as variable AntDesignIcons.

Notice

it is not released, use it in [email protected] or later. [email protected] doesn't work

from ant-design-icons.

iifksp avatar iifksp commented on July 27, 2024 1

遇到同样的问题,就算只用一个Input,即使在wepack externals设置了antd,也会一下就把icon都打包进来了。

from ant-design-icons.

iugo avatar iugo commented on July 27, 2024

@HeskeyBaozi [email protected] doesn't work.

webpack.externals: {
  antd: 'antd',
  bizcharts: 'BizCharts',
  '@ant-design/icons': 'AntDesignIcons',
},

According to BundleAnalyzerPlugin analysis, '@ant-design/icons' still be packaged.

from ant-design-icons.

ZhenlyChen avatar ZhenlyChen commented on July 27, 2024

I had a same problem.
How to use externals instead of '@ant-design/icons

from ant-design-icons.

imsushree avatar imsushree commented on July 27, 2024

How was this resolved? Can someone help pls? I am on antd 4 and creating a component library out of antd. Even if I add it to externals in webpack, I am still seeing a lot of related code in bundle like antdesign icons and rc- stuff. Can someone help pls @afc163

from ant-design-icons.

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.