Update Addons-Storysource README.md (#8275)

Update Addons-Storysource README.md
This commit is contained in:
Michael Shilman 2019-10-02 16:57:09 -07:00 committed by Michael Shilman
parent 3d4e8f237d
commit 4b11d24d1a

View File

@ -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'),