@@ -8,6 +8,7 @@ module.exports = {
8
8
availableOptions : [
9
9
{ name : 'source-dir' , type : String , default : 'src' , aliases : [ 'sd' ] } ,
10
10
{ name : 'prefix' , type : String , default : 'app' , aliases : [ 'p' ] } ,
11
+ { name : 'style' , type : String , default : 'css' } ,
11
12
{ name : 'mobile' , type : Boolean , default : false }
12
13
] ,
13
14
@@ -18,8 +19,7 @@ module.exports = {
18
19
} ,
19
20
20
21
locals : function ( options ) {
21
- //TODO: pull value from config
22
- this . styleExt = 'css' ;
22
+ this . styleExt = options . style ;
23
23
this . version = require ( path . resolve ( __dirname , '..' , '..' , '..' , '..' , 'package.json' ) ) . version ;
24
24
25
25
// Join with / not path.sep as reference to typings require forward slashes.
@@ -32,10 +32,10 @@ module.exports = {
32
32
htmlComponentName : stringUtils . dasherize ( options . entity . name ) ,
33
33
jsComponentName : stringUtils . classify ( options . entity . name ) ,
34
34
fullAppName : fullAppName ,
35
- styleExt : this . styleExt ,
36
35
version : this . version ,
37
36
sourceDir : options . sourceDir ,
38
37
prefix : options . prefix ,
38
+ styleExt : this . styleExt ,
39
39
refToTypings : refToTypings ,
40
40
isMobile : options . mobile
41
41
} ;
@@ -48,7 +48,7 @@ module.exports = {
48
48
return options . locals . sourceDir ;
49
49
} ,
50
50
__styleext__ : ( ) => {
51
- return options . locals . styleExt ;
51
+ return this . styleExt ;
52
52
}
53
53
} ;
54
54
}
0 commit comments