Grails同时拥有资源插件和资产管道 [英] Grails having both Resource plugin and assets pipeline

查看:74
本文介绍了Grails同时拥有资源插件和资产管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我有我的应用程序运行grails 2.4.3资源插件1.2.8。我们正计划转向资产管道。我们是否可以让两个插件一起工作,因为我们会部分更新代码。有没有人有任何经验。

Hi I have my application running on grails 2.4.3 with resources plugin 1.2.8. We are planing to move to asset pipeline. Can we have both plugin working together as we will update code partially. Does anyone have any experience.

推荐答案

asset-pipeline在构建war文件时工作,但资源在部署。所以没有资源可以做。

asset-pipeline does its work when building the war file, but resources works at runtime after deployment. So there wouldn't be anything for resources to do.

他们还使用不同的文件夹(> grails-app / assets web-app 下的资源),所以默认情况下他们甚至不能访问相同的文件,对吧?

They also use different folders (asset-pipeline under grails-app/assets, resources under web-app) so by default they wouldn't even have access to the same files, right?

在您完成所有工作之后,您应该写下您的经验 - 我认为这对其他开发人员非常有帮助。我相信资产管道开发人员会对文档贡献表示赞赏,并提供关于要查找的内容和潜在问题的说明,或者如果您为此付出了全面教程。或者发给他们一个链接到你的博客文章:)

You should write up your experience after you get everything working - I think this would be very helpful for other developers. I'm sure the asset-pipeline developers would appreciate a docs contribution with notes on what to look for and potential gotchas, or a full tutorial if you're up for that. Or send them a link to your blog post :)

这篇关于Grails同时拥有资源插件和资产管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆