Skip to content

Commit 5085da3

Browse files
alan-agius4filipesilva
authored andcommitted
refactor(@angular-devkit/build-angular): update postcss-cli-resources plugin to make it strict compliant
1 parent 0ac6def commit 5085da3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/postcss-cli-resources.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ async function resolve(
4646
}
4747
}
4848

49-
export default postcss.plugin('postcss-cli-resources', (options: PostcssCliResourcesOptions) => {
49+
export default postcss.plugin('postcss-cli-resources', (options: PostcssCliResourcesOptions | undefined) => {
50+
if (!options) {
51+
throw new Error('No options were specified to "postcss-cli-resources".');
52+
}
53+
5054
const {
5155
deployUrl = '',
5256
baseHref = '',

0 commit comments

Comments
 (0)