Giter Site home page Giter Site logo

Comments (6)

afc163 avatar afc163 commented on August 9, 2024

自行部署到合适的位置(例如 cdn),和普通的 js 一样的用法,会暴露全局变量 antd 。

http://facebook.github.io/react/downloads.html#individual-downloads

from antd-init.

hong26 avatar hong26 commented on August 9, 2024

@afc163 谢谢!这样做貌似不是我想要的,怎么搭配webpack来使用呢?原有的webpack.config.js要怎么设置才能添加使用antd呢?(不想用你们提供的脚手架来开发的情况下需要怎么弄呢?)

from antd-init.

zhangqiangoffice avatar zhangqiangoffice commented on August 9, 2024

同样的问题,我已经折腾了好长时间,就是想把antd的一个组件移到已有的项目中

from antd-init.

afc163 avatar afc163 commented on August 9, 2024

https://ant.design/docs/react/getting-started-cn#%E8%87%AA%E8%A1%8C%E6%9E%84%E5%BB%BA

from antd-init.

zhangqiangoffice avatar zhangqiangoffice commented on August 9, 2024

我按照官网加载了 babel-plugin-import,但是没有样式,为了加上样式,又提示我不能解析less,加上less又提示我找不到模块css,我都要被搞疯了

from antd-init.

afc163 avatar afc163 commented on August 9, 2024

建议你先试试社区可用的脚手架,然后参考改造你自己的。ant-design/ant-design#129

from antd-init.

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.