简体   繁体   中英

Assets pipeline on Grails

I'm using grails 2.5.x.

I'm gonna import the themes to project.

However, images, js, css contain in many subfolder in theme. So there're a lot of file to add to assets/images, assets/css, assets/stylesheet.

Is there possible way to add the whole theme folder to project, using assets pipeline.

Any solution will be appreciated.

Sure thing. Those folders are strictly for organizational purposes. Typically when i have a bundled theme or library with multiple asset types i create an grails-app/assets/libs folder and just copy it into there. Asset-pipeline does not actually restrict what file types go where. that first folder is for organization and is flattened so just make a generic vendor or libs folder and throw it in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM