Skip to content

Commit d5b5e3b

Browse files
jzz4012650haoqunjiang
authored andcommitted
fix: fix loaderOptions.postcss detection (#3201)
fixes #3194
1 parent f15dcf7 commit d5b5e3b

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/config/css.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = (api, options) => {
4646
// check if the project has a valid postcss config
4747
// if it doesn't, don't use postcss-loader for direct style imports
4848
// because otherwise it would throw error when attempting to load postcss config
49-
const hasPostCSSConfig = !!(api.service.pkg.postcss || findExisting(api.resolve('.'), [
49+
const hasPostCSSConfig = !!(loaderOptions.postcss || api.service.pkg.postcss || findExisting(api.resolve('.'), [
5050
'.postcssrc',
5151
'.postcssrc.js',
5252
'postcss.config.js',

0 commit comments

Comments
 (0)