Add support for "tailwind" function to look up config values

This commit is contained in:
Adam Wathan 2017-10-07 13:47:51 -04:00
parent b358390e8b
commit ba04169e4e
8 changed files with 45 additions and 12 deletions

View file

@ -0,0 +1,12 @@
import _ from 'lodash'
import functions from 'postcss-functions'
export default function(options) {
return functions({
functions: {
tailwind: function (path) {
return _.get(options, _.trim(path, `'"`))
}
}
})
}