Unwrap config in inner function
Unwrapping in the outer function causes it to get cached during watching.
This commit is contained in:
parent
260ce829af
commit
021ce94b7d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue