Skip to content

Commit

Permalink
Merge pull request #24 from deriv-com/shayan/fix-storybook-deployment…
Browse files Browse the repository at this point in the history
…-error

fix: exclude vite-plugin-lib-inject-css from storybook build
  • Loading branch information
shayan-deriv authored Jan 26, 2024
2 parents 7ee3a84 + 332d1d6 commit 697d507
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { withoutVitePlugins } from '@storybook/builder-vite'


const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
Expand All @@ -15,5 +17,11 @@ const config: StorybookConfig = {
docs: {
autodocs: "tag",
},
async viteFinal(config) {
return {
...config,
plugins: await withoutVitePlugins(config.plugins, ['vite:lib-inject-css']),
}
},
};
export default config;

0 comments on commit 697d507

Please sign in to comment.