Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): add file path in CSS optimization…
Browse files Browse the repository at this point in the history
… exception

Closes #19561
  • Loading branch information
alan-agius4 authored and clydin committed Dec 8, 2020
1 parent c99cef7 commit d3afdcc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -115,7 +115,7 @@ export class OptimizeCssWebpackPlugin {
// tslint:disable-next-line: no-any
(cssNano.process as any)(content, postCssOptions, cssNanoOptions)
.then(resolve)
.catch(reject);
.catch((err: Error) => reject(new Error(`${file} ${err.message}`)));
});

for (const { text } of output.warnings()) {
Expand Down

0 comments on commit d3afdcc

Please sign in to comment.