Merge pull request #1583 from mathieutu/patch-2

[Plugins] Give the whole config access to plugins if needed.
This commit is contained in:
Adam Wathan 2020-08-06 16:08:31 -04:00 • committed by GitHub
commit f6ce56d3b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,8 @@ export default function(plugins, config) {
const applyConfiguredPrefix = selector => {
return prefixSelector(config.prefix, selector)
}
const getConfigValue = (path, defaultValue) => _.get(config, path, defaultValue)
const getConfigValue = (path, defaultValue) => (path ? _.get(config, path, defaultValue) : config)
const browserslistTarget = browserslist().includes('ie 11') ? 'ie11' : 'relaxed'
plugins.forEach(plugin => {