Skip to content

Commit

Permalink
fix unocss error
Browse files Browse the repository at this point in the history
  • Loading branch information
eihabkhan1 committed Jan 25, 2024
1 parent 76f9be5 commit ae8909c
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions packages/vue3/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import type { StorybookConfig } from "@storybook/vue3-vite";
import path from 'path';
import Unocss from 'unocss/vite';

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
module.exports = {
"stories": [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-interactions"
],
framework: {
name: "@storybook/vue3-vite",
options: {},
"framework": {
"name": "@storybook/vue3-vite",
"options": {}
},
docs: {
autodocs: "tag",
"docs": {
"docsPage": false
},
};
export default config;
async viteFinal(config, { configType }) {
config.resolve.alias['~'] = `${path.resolve(__dirname, 'src')}/`;
config.plugins.push(Unocss);
return config;
}
}

0 comments on commit ae8909c

Please sign in to comment.