File tree Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Expand file tree Collapse file tree 2 files changed +22
-12
lines changed Original file line number Diff line number Diff line change
1
+ var path = require ( 'path' ) ;
2
+
1
3
module . exports = {
2
4
title : 'Style guide example' ,
3
5
rootDir : './lib' ,
@@ -7,16 +9,25 @@ module.exports = {
7
9
} ) ;
8
10
} ,
9
11
updateWebpackConfig : function ( webpackConfig , env ) {
10
- webpackConfig . module . loaders . push ( {
11
- test : / \. j s x ? $ / ,
12
- include : __dirname ,
13
- loader : 'babel'
14
- } ) ;
15
- webpackConfig . module . loaders . push ( {
16
- test : / \. c s s $ / ,
17
- include : __dirname ,
18
- loader : 'style!css?modules&importLoaders=1'
19
- } ) ;
12
+ webpackConfig . module . loaders . push (
13
+ {
14
+ test : / \. j s x ? $ / ,
15
+ include : __dirname ,
16
+ loader : 'babel'
17
+ } ,
18
+ {
19
+ test : / \. c s s $ / ,
20
+ include : __dirname ,
21
+ loader : 'style!css?modules&importLoaders=1'
22
+ } ,
23
+ {
24
+ test : / \. j s o n $ / ,
25
+ include : path . dirname ( require . resolve ( 'dog-names/package.json' ) ) ,
26
+ loader : 'json'
27
+ }
28
+ ) ;
29
+
30
+
20
31
return webpackConfig ;
21
32
}
22
33
} ;
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ module.exports = function(env) {
54
54
{
55
55
test : / \. j s o n $ / ,
56
56
include : [
57
- getPackagePath ( 'entities' ) ,
58
- getPackagePath ( 'dog-names' )
57
+ getPackagePath ( 'entities' )
59
58
] ,
60
59
loader : 'json'
61
60
} ,
You can’t perform that action at this time.
0 commit comments