mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2026-01-18 16:17:36 +00:00
15 lines
293 B
JavaScript
15 lines
293 B
JavaScript
import _ from 'lodash'
|
|
import functions from 'postcss-functions'
|
|
|
|
export default function(config) {
|
|
const options = config()
|
|
|
|
return functions({
|
|
functions: {
|
|
config: (path, defaultValue) => {
|
|
return _.get(options, _.trim(path, `'"`), defaultValue)
|
|
},
|
|
},
|
|
})
|
|
}
|