Closed MaximusFT closed 3 years ago
These changes can help to close #77 issue.
I'm not sure I understand how bethSymbol
is supposed to be used. To get this result .hello+.a
, which is the same as .hello + .a
you could just set the existing prefix param to: prefix: '.hello +'
. AFAIK CSS doesn't care if there are spaces or not.
For gluing the prefix to the selector (.hello.a
), the transform param can be used:
transform(prefix, selector, prefixedSelector) {
return prefix + selector;
}
Since both the cases you presented are already covered by existing functionality then I'd avoid adding more params to the plugin.
These changes can help to close #77 issue.
That issue was referring to prefixing only certain selectors, not certain files so sadly it will remain open :(
These changes can help to close #77 issue.
That issue was referring to prefixing only certain selectors, not certain files so sadly it will remain open :(
Yes, you right... I didn't pay enough attention
Update PR. Leave new tests and solve them as you propose.
@RadValentin Thanks for the review. Update PR
Looks good to me! 👍 Thanks for contributing, I'll release a new version of the plugin today.
I hope all my changes will be clear. Add tests for all new cases. All test is green
Feel free to write in any question.
PS: for me important to use an updated version in my project )