Skip to content

Commit

Permalink
fix storybook preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Sep 17, 2024
1 parent 31f55b1 commit 98f3f76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "node:fs";
import path from 'node:path';
import vue from '@vitejs/plugin-vue'
import {fileURLToPath} from "url";

//storybook-tailwind-dark-mode
Expand All @@ -22,7 +21,8 @@ const config = {

framework: {
name: "@storybook/vue3-vite",
options: {}
options: {
}
},

env: (config) => {
Expand All @@ -48,11 +48,7 @@ const config = {
'@/src': fileURLToPath(new URL('../src', import.meta.url)),
}

const { mergeConfig } = await import('vite');

return mergeConfig(config, {
plugins: [vue()],
});
return config;
}
};

Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setup } from '@storybook/vue3';
import "../src/assets/index.css";
import "../src/assets/vendor";
import "./stories.css"
import SfdumpWrap from "../src/shared/lib/vendor/dumper";
import { SfdumpWrap } from '../src/shared/lib/vendor/dumper'
import 'tailwindcss/tailwind.css'
import type { Preview } from '@storybook/vue3'

Expand Down
Empty file.

0 comments on commit 98f3f76

Please sign in to comment.