Skip to content

Commit

Permalink
Fix webpack --config conflict and remove postcss warning (#13)
Browse files Browse the repository at this point in the history
Fixes #4 #11
  • Loading branch information
stoneChen authored and giuseppeg committed Apr 1, 2018
1 parent ef0f78b commit 86bf547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function processor(src, options) {

let loaderPromise
if (!plugins) {
loaderPromise = loader(options.env || process.env)
loaderPromise = loader(options.env || process.env, null, { argv: false })
.then(pluginsInfo => {
plugins = pluginsInfo.plugins || []
})
Expand All @@ -22,7 +22,7 @@ function processor(src, options) {
if (!_processor) {
_processor = postcss(plugins)
}
return _processor.process(src)
return _processor.process(src, { from: false })
})
.then(result => result.css)
}
Expand Down

0 comments on commit 86bf547

Please sign in to comment.