Cant get modular components and style working

kdma
创建于
2017-05-10 12:15:57

Version

2.10.0

Environment

Win 10, Chrome 58.0.3029.96 (64-bit)

Reproduction link

https://github.com/kdma/ant-css-minimal

Steps to reproduce

I followed https://ant.design/docs/react/introduce
and added ant to my react/ts/webpack webapp
For linked repository just clone repo && npm install

What is expected?

I expected to be able to have a modularized bundle that doesnt load all components at once and to see them with their CSS

What is actually happening?

I have a 14 mb bundle and styles are not applied.

3条回答
afc163
回复于
2017-05-10 12:24:48
#1
kdma
回复于
2017-05-10 12:58:09
#2

Thanks @afc163
For anyone interested the solution is in whyming comment in the linked issue.
I suggest to update the getting started in the website.
(my linked repo is updated to use the suggested modifications so if anyone has the same problem can just copy/paste)

回复于
2018-05-10 14:05:37
#3

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

当前位于第1页,总计3 条回复

推荐相似问题

关于upload的onRemove函数

过程:取消导入也就是onRemove,这个upload组件的属性onRemove是否能暴露到外面获取呢 如图: 代码: let Token = cookie.load('userdata'); const ProcessProps = {
讨论数 4
ant-design
创建时间:2017-05-10 08:38:39

Select/autocomplete to be case sensitive

Version 2.10.0 Environment browser Reproduction link https://codesandbox.io/s/ElKon05Ok Steps to reproduce In the search
讨论数 12
ant-design
创建时间:2017-05-10 06:58:11

select组件在mode为multiple或者tags的时候,删除选择项的显示问题

Version 2.10.0 Environment linux、chrome 54 Reproduction link http://codepen.io/liuniannan/pen/wdydZq Steps to reproduce
讨论数 4
ant-design
创建时间:2017-05-10 06:39:57
讨论数 3
ant-design
创建时间:2017-05-10 06:29:48

表单组件增加只读属性

What problem does this feature solve? 希望表单组件(如Input、Select等)能够只读,但不是disabled,只读的表单组件背景呈现灰色,用鼠标能够复制内容 What does the propo
讨论数 4
ant-design
创建时间:2017-05-10 06:04:35

feat: make validation's message under the control of LocaleProvider?

@enzolutions @ginodeis Thanks for your contribution, with the new version 2.10.0 now the calendar is working in Spanish.
讨论数 5
ant-design
创建时间:2017-05-10 04:06:14

2.10.0表单DatePicker控件验证状态图标错位(附图)

Version 2.10.0 Environment windows10,chrome 59,react 15.5.4 Reproduction link https://chinacoolboyzz.github.io/antd-bug
讨论数 3
ant-design
创建时间:2017-05-10 03:15:04
讨论数 3
ant-design
创建时间:2017-05-10 03:00:39

求助,请问如何设置Icon图标颜色

项目中需要设置Icon图标颜色, 求助,谢谢
讨论数 3
ant-design
创建时间:2017-05-10 02:11:44

请问如何设置Icon图标颜色

请问如何设置Icon图标颜色, 谢谢
讨论数 3
ant-design
创建时间:2017-05-10 02:08:48