From b8aa19af6ca797667512220f3b5d843134f2808b Mon Sep 17 00:00:00 2001 From: Danny Andrews Date: Fri, 21 Apr 2017 13:18:26 -0500 Subject: [PATCH 1/2] Add note about webpack version --- .../react-storybook/configurations/custom-webpack-config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docs/react-storybook/configurations/custom-webpack-config.js b/src/docs/react-storybook/configurations/custom-webpack-config.js index 20a74d5..c7b78d0 100644 --- a/src/docs/react-storybook/configurations/custom-webpack-config.js +++ b/src/docs/react-storybook/configurations/custom-webpack-config.js @@ -4,6 +4,9 @@ export default { id: 'custom-webpack-config', title: 'Custom Webpack Config', content: stripIndent` + **NOTE: Storybook doesn't currently support webpack 2, so write your storybook webpack config to be + webpack 1.x-compatable.** + The default Webpack config of React Storybook is usually well balanced for a medium-size React project (specially created with [Create React App](https://github.com/facebookincubator/create-react-app)) or a library. But if you already have your own Webpack setup, that's not useable. That's why we allow you to customize our Webpack setup. There are a few ways to do it. Let's discuss: From b8521df47dd2c4133365439c7b384c34276cb9d0 Mon Sep 17 00:00:00 2001 From: Danny Andrews Date: Thu, 27 Apr 2017 08:16:35 -0500 Subject: [PATCH 2/2] Fix line break --- .../react-storybook/configurations/custom-webpack-config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/docs/react-storybook/configurations/custom-webpack-config.js b/src/docs/react-storybook/configurations/custom-webpack-config.js index c7b78d0..0d868d5 100644 --- a/src/docs/react-storybook/configurations/custom-webpack-config.js +++ b/src/docs/react-storybook/configurations/custom-webpack-config.js @@ -4,8 +4,7 @@ export default { id: 'custom-webpack-config', title: 'Custom Webpack Config', content: stripIndent` - **NOTE: Storybook doesn't currently support webpack 2, so write your storybook webpack config to be - webpack 1.x-compatable.** + **NOTE: Storybook doesn't currently support webpack 2, so write your storybook webpack config to be webpack 1.x-compatable.** The default Webpack config of React Storybook is usually well balanced for a medium-size React project (specially created with [Create React App](https://github.com/facebookincubator/create-react-app)) or a library. But if you already have your own Webpack setup, that's not useable.