New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

meteor-import-antd

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meteor-import-antd

A workaround for whom wants to use antd with meteor

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
13
44.44%
Maintainers
1
Weekly downloads
 
Created
Source

meteor-import-antd

A workaround for whom wants to use antd with meteor.

Why ?

please refer to this meteor/babel issue

The purpose of this package is to free you of double imports per component (the component by itself plus its style). By using it, you'll just need one import.

How to use it ?

import Skeleton from 'meteor-import-antd/Skeleton';

instead of recommanded :

import 'antd/lib/skeleton/style/index.css';
import Skeleton from 'antd/lib/skeleton';

By the way, you'll also have to import global styles by yourself on a top level component, or in a GlobalStyle if you use styled-component :

import { createGlobalStyle } from 'styled-components';
import antdReset from 'antd/lib/style/v2-compatible-reset.css';
import antdStyle from 'antd/lib/style/index.css';

const GlobalStyle = createGlobalStyle`
  ${antdStyle}
  ${antdReset}
`;

export default GlobalStyle;

Keywords

meteor

FAQs

Package last updated on 08 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts