Programmatically editing Less (css) code with JQuery-like selector syntax?

前端 未结 6 1766
萌比男神i
萌比男神i 2020-12-05 21:02

It\'s possible to use libraries in less.js to dynamically regenerate css from less files within the browser. If there was an easy way to modify less code, this would be an e

6条回答
  •  悲&欢浪女
    2020-12-05 21:46

    If you can do c# and want to do this server-side, the port dotless supports plugins where you implement a visitor pattern to programmatically alter the less ast before it is spit out...

提交回复
热议问题