- Fix Storybook path alias resolution for ~ imports - Fix Playwright runtime error by using production build - Fix accessibility color contrast issues (WCAG AA compliant) - Fix test route from /jobs to /professionals - Update chip-btn.active and .btn.primary colors to #a33500
30 lines
695 B
TypeScript
30 lines
695 B
TypeScript
import type { StorybookConfig } from 'storybook-solidjs-vite';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const config: StorybookConfig = {
|
|
"stories": [
|
|
"../src/**/*.mdx",
|
|
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
],
|
|
"addons": [
|
|
"@storybook/addon-a11y",
|
|
"@storybook/addon-docs"
|
|
],
|
|
"framework": "storybook-solidjs-vite",
|
|
async viteFinal(config) {
|
|
return {
|
|
...config,
|
|
resolve: {
|
|
...config.resolve,
|
|
alias: {
|
|
...config.resolve?.alias,
|
|
'~': path.resolve(__dirname, '../src'),
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|
|
export default config;
|