Skip to content

Commit

Permalink
fix: fix loaderOptions.postcss detection (#3201)
Browse files Browse the repository at this point in the history
fixes #3194
  • Loading branch information
jzz4012650 authored and sodatea committed Jan 8, 2019
1 parent f15dcf7 commit d5b5e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/config/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = (api, options) => {
// check if the project has a valid postcss config
// if it doesn't, don't use postcss-loader for direct style imports
// because otherwise it would throw error when attempting to load postcss config
const hasPostCSSConfig = !!(api.service.pkg.postcss || findExisting(api.resolve('.'), [
const hasPostCSSConfig = !!(loaderOptions.postcss || api.service.pkg.postcss || findExisting(api.resolve('.'), [
'.postcssrc',
'.postcssrc.js',
'postcss.config.js',
Expand Down

0 comments on commit d5b5e3b

Please sign in to comment.