Grails asset pipeline exclude not working

岁酱吖の 提交于 2019-12-11 12:31:10

问题


I have a project on Grails and angular.js. Also I have tests which runs on karma+jasmin. My directory structure is:

  • grails-app
    • assets
      • images
      • javascripts
      • locales
      • stylesheets
      • test

On production all my assets are building on bamboo. The problem is that I want to exclude from compiling test folder with all that inside of it and can't do that.

In my Config.groovy I've added

grails.assets.excludes = ["test/**/(*.js|*.json)"]

Also I've tried different patterns for exclude and they all not working. While building I see that all files inside test folder are being compiled+uglified which I don't want since those are node modules and so on.

来源:https://stackoverflow.com/questions/30640061/grails-asset-pipeline-exclude-not-working

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