Skip to content

Commit

Permalink
dog-names required only for the example page.
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Feb 17, 2016
1 parent 8ad78cc commit 066785f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
31 changes: 21 additions & 10 deletions example/styleguide.config.js
@@ -1,3 +1,5 @@
var path = require('path');

module.exports = {
title: 'Style guide example',
rootDir: './lib',
Expand All @@ -7,16 +9,25 @@ module.exports = {
});
},
updateWebpackConfig: function(webpackConfig, env) {
webpackConfig.module.loaders.push({
test: /\.jsx?$/,
include: __dirname,
loader: 'babel'
});
webpackConfig.module.loaders.push({
test: /\.css$/,
include: __dirname,
loader: 'style!css?modules&importLoaders=1'
});
webpackConfig.module.loaders.push(
{
test: /\.jsx?$/,
include: __dirname,
loader: 'babel'
},
{
test: /\.css$/,
include: __dirname,
loader: 'style!css?modules&importLoaders=1'
},
{
test: /\.json$/,
include: path.dirname(require.resolve('dog-names/package.json')),
loader: 'json'
}
);


return webpackConfig;
}
};
3 changes: 1 addition & 2 deletions src/make-webpack-config.js
Expand Up @@ -54,8 +54,7 @@ module.exports = function(env) {
{
test: /\.json$/,
include: [
getPackagePath('entities'),
getPackagePath('dog-names')
getPackagePath('entities')
],
loader: 'json'
},
Expand Down

0 comments on commit 066785f

Please sign in to comment.