@@ -17,7 +17,7 @@ const ANGULAR_JSON_TEMPLATE_CSS_SUPPORT_PATH =
17
17
const MAIN_TS_FILE_PATH = path . join ( __dirname , "../templates/main.ts.template" ) ;
18
18
const APP_COMPONENT_SCSS_PATH = path . join ( __dirname , "../../src/app/app.component.scss" ) ;
19
19
const APP_COMPONENT_TS_PATH = path . join ( __dirname , "../../src/app/app.component.ts" ) ;
20
- const IE_POLYFILLS_TS__PATH = path . join ( __dirname , "../templates/polyfills.ts.template" ) ;
20
+ const IE_POLYFILLS_TS_PATH = path . join ( __dirname , "../templates/polyfills.ts.template" ) ;
21
21
export class SharedAssetsGenerator extends Generator {
22
22
private _showLogs : boolean ;
23
23
@@ -72,15 +72,15 @@ export class SharedAssetsGenerator extends Generator {
72
72
this . _generateSharedAssets ( args , true ) ;
73
73
}
74
74
75
- private _generateSharedAssets ( args : SharedAssetsGeneratorArgs , isIE ?: boolean ) {
75
+ private _generateSharedAssets ( args : SharedAssetsGeneratorArgs , cssAssets ?: boolean ) {
76
76
let indexFile = fs . readFileSync ( INDEX_FILE_PATH , "utf8" ) ;
77
77
let angularJsonFile = fs . readFileSync ( args . angularJsonFilePath , "utf8" ) ;
78
78
let mainTsFile = fs . readFileSync ( MAIN_TS_FILE_PATH , "utf8" ) ;
79
79
let files = new Array < LiveEditingFile > ( ) ;
80
80
let polyfillsFile ;
81
81
82
- if ( isIE ) {
83
- polyfillsFile = fs . readFileSync ( IE_POLYFILLS_TS__PATH , "utf8" ) ;
82
+ if ( cssAssets ) {
83
+ polyfillsFile = fs . readFileSync ( IE_POLYFILLS_TS_PATH , "utf8" ) ;
84
84
} else {
85
85
polyfillsFile = fs . readFileSync ( POLYPFILLS_FILE_PATH , "utf8" ) ;
86
86
}
0 commit comments