fix(webpack): detect postcss config and show warning (#1805)

This commit is contained in:
Xin Du (Clark) 2021-11-10 12:11:08 +00:00 committed by GitHub
parent 6ec518ff24
commit 256d9b1424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {