14 lines
296 B
JavaScript
14 lines
296 B
JavaScript
import _ from 'lodash'
|
|
import functions from 'postcss-functions'
|
|
|
|
export default function(config) {
|
|
const options = config()
|
|
|
|
return functions({
|
|
functions: {
|
|
config: function(path, defaultValue) {
|
|
return _.get(options, _.trim(path, `'"`), defaultValue)
|
|
}
|
|
}
|
|
})
|
|
}
|