mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 06:01:05 +08:00
CLI: MDX configuration fixes
This commit is contained in:
parent
57d73317e8
commit
08458640a4
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/angular';
|
import { configure } from '@storybook/angular';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.ts
|
// automatically import all files ending in *.stories.ts
|
||||||
configure(require.context('../src/stories', true, /\.stories\.ts$/), module);
|
configure(require.context('../src/stories', true, /\.stories\.(ts|mdx)$/), module);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/html';
|
import { configure } from '@storybook/html';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
configure(require.context('../stories', true, /\.stories\.js$/), module);
|
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/react';
|
import { configure } from '@storybook/react';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
configure(require.context('../stories', true, /\.stories\.js$/), module);
|
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/vue';
|
import { configure } from '@storybook/vue';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
configure(require.context('../src/stories', true, /\.stories\.js$/), module);
|
configure(require.context('../src/stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/vue';
|
import { configure } from '@storybook/vue';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
configure(require.context('../stories', true, /\.stories\.js$/), module);
|
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
module.exports = ['@storybook/addon-docs/vue/preset'];
|
@ -1,4 +1,4 @@
|
|||||||
import { configure } from '@storybook/react';
|
import { configure } from '@storybook/react';
|
||||||
|
|
||||||
// automatically import all files ending in *.stories.js
|
// automatically import all files ending in *.stories.js
|
||||||
configure(require.context('../stories', true, /\.stories\.js$/), module);
|
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user