@yozora/gatsby-images
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

@yozora/gatsby-images


This plugin couldn't works alone, tt needs to be used as a plugin for @yozora/gatsby-transformer which parse the markdown files into Yozora AST.

This plugin inspired by gatsby-transformer-remark, it process images referenced in markdown files as gatsby-remark-images did within gatsby-transformer-remark.

Install

  • npm

    npm install @yozora/gatsby-transformer @yozora/gatsby-images --save-dev
  • yarn

    yarn add @yozora/gatsby-transformer @yozora/gatsby-images --dev

Usage

Add configs in gatsby-config.js:

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: '@yozora/gatsby-transformer',
      options: {
        plugins: [
          {
            resolve: '@yozora/gatsby-images',
            options: {},
          }
        ]
      }
    }
  ]
}

Related

Package Sidebar

Install

npm i @yozora/gatsby-images

Weekly Downloads

1

Version

2.2.0

License

MIT

Unpacked Size

35 kB

Total Files

9

Last publish

Collaborators

  • lemonclown