Gatsby

用于加载使用 Gatsby 构建的故事的 Storybook 插件

在 Github 上查看

storybook-addon-gatsby

npm version npm downloads Github Actions CI Codecov Conventional Commits License

Storybook 插件,用于加载使用 Gatsby 构建的故事。

注意:此插件需要 Storybook 配置为 Webpack 5。有关说明,请参阅官方的 使用 Webpack 5 的 Storybook 指南

安装

npm install --save-dev storybook-addon-gatsby

然后将插件包含到您的 Storybook 配置文件 .storybook/main.js

// .storybook/main.js

module.exports = {
	addons: ["storybook-addon-gatsby"],
};

许可证

   Copyright 2013-2021 Prismic <[email protected]> (https://prismic.io)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
作者
  • angeloashmore
    angeloashmore
兼容
    Preact
    React
标签