From 256d9b1424af579a32a91bdfe29640453d8e1362 Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Wed, 10 Nov 2021 12:11:08 +0000 Subject: [PATCH] fix(webpack): detect postcss config and show warning (#1805) --- packages/webpack/src/utils/postcss.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/utils/postcss.ts b/packages/webpack/src/utils/postcss.ts index d40b3a0251..399560c160 100644 --- a/packages/webpack/src/utils/postcss.ts +++ b/packages/webpack/src/utils/postcss.ts @@ -122,7 +122,7 @@ export class PostcssConfig { } getConfigFile () { - const loaderConfig = (this.postcssOptions && this.postcssOptions.config) || {} + const loaderConfig = this.postcssOptions && this.postcssOptions.config const postcssConfigFile = loaderConfig || this.searchConfigFile() if (typeof postcssConfigFile === 'string') {