Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from k88hudson/react-storybook
Browse files Browse the repository at this point in the history
chore(content): Converted storybooks to use custom webpack
  • Loading branch information
Dan Mosedale authored Aug 9, 2016
2 parents e7fc8e4 + d0ff7c4 commit 271684c
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@ const webpack = require("webpack");
const {plugins, resolve} = require("../webpack.common");
const path = require("path");

module.exports = {
resolve,
module: {
loaders: [
{test: /\.json$/, loader: "json"},
{
test: /\.css?$/,
loaders: ['style', 'raw'],
include: path.resolve(__dirname, '../')
}
]
},
devtool: "eval-sourcemap",
plugins: plugins
module.exports = storybookBaseConfig => {
return Object.assign(storybookBaseConfig, {
resolve,
module: {
loaders: [
{test: /\.json$/, loader: "json"},
{
test: /\.css?$/,
loaders: ['style', 'raw'],
include: path.resolve(__dirname, '../')
},
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: "babel"
}
]
},
devtool: "eval-sourcemap",
plugins: storybookBaseConfig.plugins.concat(plugins)
});
};

0 comments on commit 271684c

Please sign in to comment.