Skip to content

Commit

Permalink
Update docs for storybookjs#169
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda authored and dcpdev committed May 10, 2016
1 parent 4618fd4 commit 0a958d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/webpack_full_control_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ Example:
// .storybook/webpack.config.js

// Export a function. Accept the base config as the only param.
module.exports = (storybookBaseConfig) => {
module.exports = (storybookBaseConfig, configType) => {
// configType has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.

// Make whatever fine-grained changes you need
storybookBaseConfig.module = { ... }

Expand All @@ -35,4 +39,4 @@ The following sections of the config could break storybook if deleted:
- `config.output`
- `config.plugins[new webpack.HotModuleReplacementPlugin()]`

You've been warned.
You've been warned.

0 comments on commit 0a958d2

Please sign in to comment.