Hi @enzolutions
As I said, AFAIK in Meteor 1.4.4.1 using antd with babel plugin import is still broken. Unless there is something you really need from Meteor version 1.4.4.1 for doing your development at the moment, I would recommend setting your project to use Meteor 1.4.2.6 (I think 1.4.2.7 is also still ok) - donāt use Meteor 1.4.4.1.
When you use Meteor 1.4.2.6, you can use antd the normal way that is described on antdās website (there are clear instructions there but roughly: install antd and babel-plugin-import, add ["import", { "libraryName": "antd", "style": "css" }],
under āpluginsā in your .babelrc file and in your source files include any components that you need with e.g. import { Radio } from "antd";
Thatās all you need and you donāt need to include css manually. It gets included
Still having the āYou are using a whole package of antdā¦ā issue with meteor 1.6.1 ((
The only solution Iāve found is to use babel-plugin-importand import styles explicitly
Btw, Antd is really huge!
When I import single DatePicker component my app grows in size for 400kb ungzipped!
Button component adds 150kbā¦ and so on.
Currently I created a variables.less file that is being imported after the antd.less file and defined @primary-1 -> @primary-10 variables and also the @primary-color: @primary-6 and everything works.
it is the second way suggested in the theming section of the library