fix(compiler): generated CSS files suffixed with ngstyle. (#13353)

Mirrors factories which ends in `ngfactory`.

Closes #13141.
This commit is contained in:
Hans
2016-12-13 17:34:46 -08:00
committed by Victor Berchet
parent f5f1d5f65c
commit d62d89319e
7 changed files with 21 additions and 12 deletions

View File

@ -107,7 +107,7 @@ export class TsickleCompilerHost extends DelegatingHost {
};
}
const IGNORED_FILES = /\.ngfactory\.js$|\.css\.js$|\.css\.shim\.js$/;
const IGNORED_FILES = /\.ngfactory\.js$|\.ngstyle\.js$/;
export class MetadataWriterHost extends DelegatingHost {
private metadataCollector = new MetadataCollector();

View File

@ -22,11 +22,11 @@ interface Options extends ts.CompilerOptions {
// Produce an error if the metadata written for a class would produce an error if used.
strictMetadataEmit?: boolean;
// Don't produce .ngfactory.ts or .css.shim.ts files
// Don't produce .ngfactory.ts or .ngstyle.ts files
skipTemplateCodegen?: boolean;
// Whether to generate code for library code.
// If true, produce .ngfactory.ts and .css.shim.ts files for .d.ts inputs.
// If true, produce .ngfactory.ts and .ngstyle.ts files for .d.ts inputs.
// Default is true.
generateCodeForLibraries?: boolean;