2.1.7 • Published 3 years ago

gatsby-plugin-import v2.1.7

Weekly downloads
759
License
MIT
Repository
github
Last release
3 years ago

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 babel-plugin-import -D
npm i gatsby-plugin-import -S

Or use yarn:

yarn add babel-plugin-import -D
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 usage see there

Contribution

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

2.1.7

3 years ago

2.1.6

4 years ago

2.1.5

5 years ago

2.1.4

5 years ago

2.1.2

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago