简体   繁体   English

Grails上的资产管道

[英]Assets pipeline on Grails

I'm using grails 2.5.x. 我正在使用grails2.5.x。

I'm gonna import the themes to project. 我将主题导入项目。

However, images, js, css contain in many subfolder in theme. 但是,图像,js,css包含许多主题子文件夹。 So there're a lot of file to add to assets/images, assets/css, assets/stylesheet. 因此,有很多文件要添加到资产/图像,资产/ css,资产/样式表。

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. 通常,当我具有多种资产类型的捆绑主题或库时,我会创建grails-app/assets/libs文件夹并将其复制到该文件夹​​中。 Asset-pipeline does not actually restrict what file types go where. Asset-pipeline实际上并不限制哪些文件类型存放在哪里。 that first folder is for organization and is flattened so just make a generic vendor or libs folder and throw it in. 该第一个文件夹是用于组织的并且已被压平,因此只需制作一个通用供应商或libs文件夹并将其放入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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