intoli/antd-scss-theme-plugin

$icon-url block compile

ruoqianfengshao opened this issue · 5 comments

I set $icon-url in theme.scss and it make webpack compile error

image

compile success without this variable.

Does this variable support to less?

I find varibale recognized by scss-to-json, scss-to-json will remove '//' and what's behind it.

prncc commented

@ruoqianfengshao Did you actually solve this issue, or have you given up trying to? If it's the latter, I'll reopen and see what can be done to fix it.

@prncc Thx for your response, I fork scss-to-json and antd-scss-theme-plugin, and solve this problem with not elegant way :).

@prncc I'd like to publish a new scss-to-json package,will you change the repo's dependency? 😄

prncc commented

@ruoqianfengshao I took a closer look. You should be able to fix your problem by escaping the slashes in the URL:

$icon-url: "https:\/\/at.alicdn.com\/t\/font_148784_v4ggb6wrjmkotj4i";