有谁知道如何让 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/