File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,9 +14,14 @@ let ResourceInclusion = class {
1414 }
1515
1616 getCSS ( ) {
17- let globExpr = '?(dist|build|lib|css|style|styles})/**/*.css' ;
17+ let subdirs = '?(dist|build|lib|css|style|styles)/**/*.css' ;
18+ let curDir = '*.css' ;
1819
19- return this . getResources ( globExpr )
20+ return Promise . all ( [
21+ this . getResources ( subdirs ) ,
22+ this . getResources ( curDir )
23+ ] )
24+ . then ( cssFiles => cssFiles [ 0 ] . concat ( cssFiles [ 1 ] ) )
2025 . then ( cssFiles => {
2126 if ( cssFiles . length === 0 ) {
2227 return [ ] ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ let JSPMSectionStrategy = class {
2222
2323 execute ( ) {
2424 let jspm = this . package . packageJSON . jspm ;
25+ let main = jspm . main || this . package . packageJSON . main ;
2526 let directories = jspm . directories ;
2627 let distFolder = '' ;
2728
@@ -30,10 +31,10 @@ let JSPMSectionStrategy = class {
3031 }
3132
3233 this . package . path = path . posix . join ( '../node_modules/' , this . package . name , distFolder ) ;
33- this . package . main = jspm . main ;
34+ this . package . main = main ;
3435
35- if ( jspm . shim && jspm . shim [ configuration . main ] ) {
36- let shim = jspm . shim [ configuration . main ] ;
36+ if ( jspm . shim && jspm . shim [ main ] ) {
37+ let shim = jspm . shim [ main ] ;
3738 this . package . deps = shim . deps ;
3839 this . package . exports = shim . exports ;
3940 }
You can’t perform that action at this time.
0 commit comments