@@ -20,7 +20,9 @@ module.exports = {
20
20
21
21
availableOptions : [
22
22
{ name : 'flat' , type : Boolean , default : false } ,
23
- { name : 'route' , type : Boolean , default : false }
23
+ { name : 'route' , type : Boolean , default : false } ,
24
+ { name : 'inline-template' , type : Boolean , default : false , aliases : [ 'it' ] } ,
25
+ { name : 'inline-style' , type : Boolean , default : false , aliases : [ 'is' ] } ,
24
26
] ,
25
27
26
28
normalizeEntityName : function ( entityName ) {
@@ -42,6 +44,8 @@ module.exports = {
42
44
return {
43
45
dynamicPath : this . dynamicPath . dir . replace ( this . dynamicPath . appRoot , '' ) ,
44
46
flat : options . flat ,
47
+ inlineTemplate : options . inlineTemplate ,
48
+ inlineStyle : options . inlineStyle ,
45
49
route : options . route ,
46
50
styleExt : this . styleExt ,
47
51
isLazyRoute : ! ! options . isLazyRoute ,
@@ -58,6 +62,12 @@ module.exports = {
58
62
if ( this . options && ! this . options . route ) {
59
63
fileList = fileList . filter ( p => p . indexOf ( path . join ( 'shared' , 'index.ts' ) ) <= 0 ) ;
60
64
}
65
+ if ( this . options && this . options . inlineTemplate ) {
66
+ fileList = fileList . filter ( p => p . indexOf ( '.html' ) < 0 ) ;
67
+ }
68
+ if ( this . options && this . options . inlineStyle ) {
69
+ fileList = fileList . filter ( p => p . indexOf ( '.__styleext__' ) < 0 ) ;
70
+ }
61
71
62
72
return fileList ;
63
73
} ,
0 commit comments