如何解决从属性文件中读取值,然后在.less文件中使用该值
我有一个Spring MVC Web应用程序。我想有一个属性文件,其中将定义所有颜色的十六进制值。
blue=#0000FF
green=#008000
//other colors defined here.
有没有一种方法可以读取这些颜色值并在.less文件中需要时使用它们?
例如
mysamplefile.less
.background-color-green { background-color: //read green from properties file and use it here }
.background-color-blue { background-color: //read blue from properties file and use it here }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。