Unwrap config in inner function

Unwrapping in the outer function causes it to get cached during watching.
This commit is contained in:
Adam Wathan 2017-11-27 19:28:35 -05:00
parent 260ce829af
commit 021ce94b7d

View File

@ -23,9 +23,9 @@ const variantGenerators = {
}
export default function(config) {
const separator = config().options.separator
return function(css) {
const separator = config().options.separator
css.walkAtRules('variants', atRule => {
const variants = postcss.list.comma(atRule.params)