grails - 我怎样才能阻止 Grails less-resources 插件在每次运行应用程序时编译我的 less 文件?

标签 grails less

有谁知道如何让 Grails less-resources 插件缓存已编译的 .css 文件,并且仅在相应的 .less 文件已更改时才重新编译?它为“grails run-app”增加了很多时间。

最佳答案

我在 Grails 邮件列表中问过这个问题。解决方案是使用一些外部工具编译 less 并将其添加到您的版本控制中,摆脱插件并简化事情。

然后资源将只链接到已编译的 css,这将改善您的启动时间和内存使用。

对于mac,大佬推荐this应用程序。

It can be left to run in the background, and is really smart about recompiling when linked resources are updated. It can also compress at the same time, so you end up with minified CSS files, if you choose.

关于grails - 我怎样才能阻止 Grails less-resources 插件在每次运行应用程序时编译我的 less 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12177321/

相关文章:

grails - Windows上的grails-3.3.9没有run-app命令

grails - 将数据从 Controller 传递到过滤器

json - 在Spock中将模拟转换为JSON

HTML CSS 在 Safari 中不起作用

javascript - 需求较少的常见 mixins

grails - Grails模板访问数据库冗余

java - 在 Hibernate 中检索使用 BigInteger 映射的属性时出现问题

html - 将背景颜色添加到标记 'html' 会破坏 z-index?

css - 具有相对路径的 LESS CSS 背景

html - 导航不会拉动更少的变量