Grails having both Resource plugin and assets pipeline

百般思念 提交于 2020-01-14 13:53:05

问题


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.


回答1:


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.

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 :)



来源:https://stackoverflow.com/questions/28092183/grails-having-both-resource-plugin-and-assets-pipeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!