I got an interesting parse error in my project. I use Font Awesome and I imported it into my app.less file. (I use the official less.js client-side compiler.)
@import "@{assets}/font-awesome/less/font-awesome.less";
When I use the .fa class in my HTML it works good so it compiled into css, BUT when I use the less variables in my own less file like this...
.icon-chevron-up, .icon-chevron-down{
.@{fa-css-prefix}; // or .fa
}
...the parser halted with a...
ParseError: Unrecognised input
in app.less?1 on line 36, column 2:
35 .icon-chevron-up, .icon-chevron-down{
36 .@{fa-css-prefix};
37 }
I have to override the deprecated Font-Awesome classes in a jQuery plugin without any jQuery hack. Thanks for advise!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…