main.js 436 B

1234567891011121314151617
  1. module.exports = {
  2. "stories": [
  3. "../src/**/*.stories.mdx",
  4. "../src/**/*.stories.@(js|jsx|ts|tsx)"
  5. ],
  6. /** 暴露 public 目录给到 stotrybook,作为静态资源目录 */
  7. "staticDirs": ['../public'],
  8. "addons": [
  9. "@storybook/addon-links",
  10. "@storybook/addon-essentials",
  11. "@storybook/addon-interactions"
  12. ],
  13. "framework": "@storybook/react",
  14. "core": {
  15. "builder": "@storybook/builder-webpack5"
  16. }
  17. }