mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
Update Addons-Storysource README.md (#8275)
Update Addons-Storysource README.md
This commit is contained in:
parent
3d4e8f237d
commit
4b11d24d1a
@ -48,12 +48,14 @@ Allowed values:
|
|||||||
- `typescript`
|
- `typescript`
|
||||||
- `flow`
|
- `flow`
|
||||||
|
|
||||||
|
Be sure to update the regex test for the webpack rule if utilizing Typescript files.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
module.exports = function({ config }) {
|
module.exports = function({ config }) {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.stories\.jsx?$/,
|
test: /\.stories\.tsx?$/,
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
loader: require.resolve('@storybook/source-loader'),
|
loader: require.resolve('@storybook/source-loader'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user