Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@ const config: StorybookConfig = {
options: {},
},
docs: {},
webpackFinal: async config => {
config.module?.rules?.push({
test: /\.md$/,
resourceQuery: /raw/,
type: 'asset/source',
});
Comment thread
fengtianze marked this conversation as resolved.

return config;
},
};
export default config;
5 changes: 5 additions & 0 deletions .storybook/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ declare module '*.md' {
const content: string;
export default content;
}

declare module '*.md?raw' {
const content: string;
export default content;
}
Loading
Loading