Skip to content

Commit d3afdcc

Browse files
alan-agius4clydin
authored andcommitted
fix(@angular-devkit/build-angular): add file path in CSS optimization exception
Closes #19561
1 parent c99cef7 commit d3afdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/plugins/optimize-css-webpack-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class OptimizeCssWebpackPlugin {
115115
// tslint:disable-next-line: no-any
116116
(cssNano.process as any)(content, postCssOptions, cssNanoOptions)
117117
.then(resolve)
118-
.catch(reject);
118+
.catch((err: Error) => reject(new Error(`${file} ${err.message}`)));
119119
});
120120

121121
for (const { text } of output.warnings()) {

0 commit comments

Comments
 (0)