storybook-addon-gatsby
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 <contact@prismic.io> (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.