Skip to content

Commit e27a5ce

Browse files
committed
feat: allow disabling auto postcss config loading via postcss.useConfigFile
close #654, close #800
1 parent 4e7b0b9 commit e27a5ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/style-compiler/load-postcss-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ function isObject (val) {
77
}
88

99
module.exports = function loadPostcssConfig (loaderContext, inlineConfig = {}) {
10+
if (inlineConfig.useConfigFile === false) {
11+
return Promise.resolve({
12+
plugins: inlineConfig.plugins || [],
13+
options: inlineConfig.options || {}
14+
})
15+
}
16+
1017
if (process.env.VUE_LOADER_TEST || !loaded) {
1118
const config = inlineConfig.config || {}
1219
const ctx = { webpack: loaderContext }

0 commit comments

Comments
 (0)