Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen authored May 19, 2017
2 parents 3e7bc3c + a47d8d1 commit d08b51b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ For full documentation on using Storybook visit: [storybooks.js.org](https://sto
- [Storybook for react-native](app/react-native) - Storybook for React components

### Sub Projects
- [Storyshots](lib/storyshots) - Easy snapshot testing for storybook
- [CLI](lib/cli) - Streamlined installation for a variety of app types
- [examples](examples) - Code examples to illustrate different Storybook use cases

### Addons
- [addon-storyshots](addons/storyshots) - Easy snapshot testing for storybook
- [addon-actions](addons/actions/) - Log actions as users interact with components in storybook
- [addon-comments](addons/comments/) - Comment on storybook stories
- [addon-graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
Expand Down
24 changes: 11 additions & 13 deletions app/react/src/server/config/defaults/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@ import { includePaths, excludePaths } from '../utils';
// Add a default custom config which is similar to what React Create App does.
module.exports = storybookBaseConfig => {
const newConfig = { ...storybookBaseConfig };
newConfig.plugins = [
...storybookBaseConfig.plugins,
new webpack.LoaderOptionsPlugin({
options: {
postcss: [
autoprefixer({
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'],
}),
],
},
}),
];

newConfig.module.rules = [
...storybookBaseConfig.module.rules,
{
Expand All @@ -31,7 +20,16 @@ module.exports = storybookBaseConfig => {
importLoaders: 1,
},
},
'postcss-loader',
{
loader: 'postcss-loader',
options: {
plugins: () => [
autoprefixer({
browsers: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie < 9'],
}),
],
},
},
],
},
{
Expand Down

0 comments on commit d08b51b

Please sign in to comment.