Closed toooni closed 4 years ago
First of all, thanks for the notice and the PR!
LGTM, one minor remark to make this logic a little more readable:
const postfix = typeof options.postfix.view === 'boolean' ? '' : options.postfix.view;
return `${options.format.publicPath}#${options.prefix}${selector}${postfix}`
If you could change that for the three files I'll merge it and release a new patch version.
Edit: I'll make the changes myself. Thanks for your contribution!
@toooni, this fix has been released in version 3.5.1
🚀
At the moment passing of a boolean value does also add a postfix
true
orfalse
. This results in identifiers like this:.arrow-left { background-image: url("/build/sprite.svg#arrow-leftfalse"); }