Skip to content

Commit

Permalink
Allow recompile after build error (blackbaud#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SteveBrush authored Jul 26, 2019
1 parent 7a468a9 commit e31fd52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/webpack/ts-loader-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ function getRule(command) {
]
};

// Exclude test specs from type checking during a serve.
if (command === 'serve') {

// Exclude test specs from type checking during a serve.
awesomeTypescriptLoaderOptions.reportFiles = [
'src/app/**/!(*.spec|*.fixture).ts'
];

// Report TS build errors as warnings to allow the
// application to recompile during a serve.
awesomeTypescriptLoaderOptions.errorsAsWarnings = true;
}

// These loaders will be used for files that require type checking.
Expand Down

0 comments on commit e31fd52

Please sign in to comment.