@@ -134,8 +134,9 @@ export default class Config {
134
134
135
135
this . resolveLoader = {
136
136
root : [
137
- path . join ( __dirname , '../node_modules' ) , // local, global
138
- path . join ( __dirname , '../../../node_modules' ) // flattened, via npm 3+
137
+ path . join ( opts . root ) , // the project root
138
+ path . join ( __dirname , '../node_modules' ) , // roots-mini/node_modules
139
+ path . join ( __dirname , '../../../node_modules' ) // roots-mini's flattened deps, via npm 3+
139
140
]
140
141
}
141
142
@@ -144,10 +145,10 @@ export default class Config {
144
145
145
146
this . module = {
146
147
loaders : [
147
- { test : mmToRe ( opts . matchers . css ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'css!postcss' } ,
148
- { test : mmToRe ( opts . matchers . js ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'babel' } ,
149
- { test : mmToRe ( opts . matchers . jade ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'jade' , query : { pretty : true , locals : this . locals } } ,
150
- { test : mmToRe ( opts . matchers . static ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'file' , query : { dumpDirs : opts . dumpDirs } }
148
+ { test : mmToRe ( opts . matchers . css ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'css-loader !postcss-loader ' } ,
149
+ { test : mmToRe ( opts . matchers . js ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'babel-loader ' } ,
150
+ { test : mmToRe ( opts . matchers . jade ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'jade-loader ' , query : { pretty : true , locals : this . locals } } ,
151
+ { test : mmToRe ( opts . matchers . static ) , exclude : opts . ignore . map ( mmToRe ) , loader : 'file-loader ' , query : { dumpDirs : opts . dumpDirs } }
151
152
]
152
153
}
153
154
0 commit comments