From cff55d0f7eb11c6469968a320c07fc5edbb47587 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 13 Aug 2019 15:21:02 +0200 Subject: [PATCH] fix(@ngtools/webpack): add more details to the unused files warnings --- packages/ngtools/webpack/src/angular_compiler_plugin.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ngtools/webpack/src/angular_compiler_plugin.ts b/packages/ngtools/webpack/src/angular_compiler_plugin.ts index 45f6a0c5af11..d4accb00b5cc 100644 --- a/packages/ngtools/webpack/src/angular_compiler_plugin.ts +++ b/packages/ngtools/webpack/src/angular_compiler_plugin.ts @@ -637,7 +637,10 @@ export class AngularCompilerPlugin { continue; } - compilation.warnings.push(`${fileName} is part of the TypeScript compilation but it's unused.`); + compilation.warnings.push( + `${fileName} is part of the TypeScript compilation but it's unused.\n` + + `Add only entry points to the 'files' or 'include' properties in your tsconfig.`, + ); this._unusedFiles.add(fileName); } }