wrong @if

node v10.14.1
version: 1.0.0
endpointsharetweet
const postcss = require('postcss'); // CSS to be processed var input = ` .selector { @each $value in (from, to) { /* Without parenthesis it would be right */ @if ($value == from) { top: 100%; } @else { bottom: 100%; } } } `; // Process CSS const {css} = await postcss() .use(require('postcss-advanced-variables')) .process(input); console.log(css);
Loading…

no comments

    sign in to comment