Skip to content

Commit 066785f

Browse files
committed
dog-names required only for the example page.
1 parent 8ad78cc commit 066785f

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

example/styleguide.config.js

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var path = require('path');
2+
13
module.exports = {
24
title: 'Style guide example',
35
rootDir: './lib',
@@ -7,16 +9,25 @@ module.exports = {
79
});
810
},
911
updateWebpackConfig: function(webpackConfig, env) {
10-
webpackConfig.module.loaders.push({
11-
test: /\.jsx?$/,
12-
include: __dirname,
13-
loader: 'babel'
14-
});
15-
webpackConfig.module.loaders.push({
16-
test: /\.css$/,
17-
include: __dirname,
18-
loader: 'style!css?modules&importLoaders=1'
19-
});
12+
webpackConfig.module.loaders.push(
13+
{
14+
test: /\.jsx?$/,
15+
include: __dirname,
16+
loader: 'babel'
17+
},
18+
{
19+
test: /\.css$/,
20+
include: __dirname,
21+
loader: 'style!css?modules&importLoaders=1'
22+
},
23+
{
24+
test: /\.json$/,
25+
include: path.dirname(require.resolve('dog-names/package.json')),
26+
loader: 'json'
27+
}
28+
);
29+
30+
2031
return webpackConfig;
2132
}
2233
};

src/make-webpack-config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ module.exports = function(env) {
5454
{
5555
test: /\.json$/,
5656
include: [
57-
getPackagePath('entities'),
58-
getPackagePath('dog-names')
57+
getPackagePath('entities')
5958
],
6059
loader: 'json'
6160
},

0 commit comments

Comments
 (0)