AdarshKonchady / gatsby-plugin-import

Gatsby plugin to add support for using `babel-plugin-import`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-plugin-import

Gatsby plugin to add support for using babel-plugin-import. (Only support Gatsby version >= 2.0.0)

CircleCI branch Codecov Dependencies DevDependencies

npm package npm downloads

Usage

Install

Use npm:

npm i gatsby-plugin-import -S

Or use yarn:

yarn add gatsby-plugin-import

Config

in gatsby-config.js

module.exports = {
  // ...
  plugins: [
    // ...
    {
      resolve: 'gatsby-plugin-import',
      options: {
        libraryName: "antd",
        style: true,   // or 'css'
      }
    },
  ],
}

More useage see there

Contruibution

DefinitelyTyped only works because of contributions by users like you!

Git Message

Follow the Angular git commit message specification

But, you can ignore the scope

About

Gatsby plugin to add support for using `babel-plugin-import`

License:MIT License


Languages

Language:JavaScript 100.0%