mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +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`
|
||||
- `flow`
|
||||
|
||||
Be sure to update the regex test for the webpack rule if utilizing Typescript files.
|
||||
|
||||
Usage:
|
||||
|
||||
```js
|
||||
module.exports = function({ config }) {
|
||||
config.module.rules.push({
|
||||
test: /\.stories\.jsx?$/,
|
||||
test: /\.stories\.tsx?$/,
|
||||
loaders: [
|
||||
{
|
||||
loader: require.resolve('@storybook/source-loader'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user