Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
feat: enable vite for bundling Storybook (#1473)
Browse files Browse the repository at this point in the history
closes #1429
  • Loading branch information
nickytonline committed Nov 21, 2022
1 parent 9ff9369 commit 7135fe3
Show file tree
Hide file tree
Showing 12 changed files with 1,435 additions and 589 deletions.
1 change: 1 addition & 0 deletions .npmrc
Expand Up @@ -12,3 +12,4 @@ update-notifier=false
yes=true
prefer-dedupe=true
fund=false
legacy-peer-deps=true
14 changes: 5 additions & 9 deletions .storybook/main.js
@@ -1,15 +1,11 @@

module.exports = {
"stories": [
"../stories/**/*.stories.js"
],
"addons": [
core: { builder: "@storybook/builder-vite" },
stories: ["../stories/**/*.stories.jsx"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-storysource",
"storybook-dark-mode",
],
"staticDirs": [
'../.storybook'
]
}
staticDirs: ["../.storybook"],
};
2,006 changes: 1,427 additions & 579 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -69,6 +69,7 @@
"@storybook/addon-links": "^6.4.22",
"@storybook/addon-storysource": "^6.4.22",
"@storybook/api": "^6.4.22",
"@storybook/builder-vite": "^0.2.5",
"@storybook/react": "^6.4.22",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.4",
Expand Down Expand Up @@ -100,7 +101,7 @@
"rollup-plugin-visualizer": "^5.6.0",
"storybook-dark-mode": "^1.1.0",
"svgo": "^2.8.0",
"vite": "^2.9.9",
"vite": "^3.2.3",
"vite-plugin-html": "^3.2.0",
"vite-plugin-inspect": "^0.5.0",
"vite-plugin-pwa": "^0.12.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7135fe3

Please sign in to comment.