问题
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