Where is GRAILS asset pipeline configuration grails.assets.excludes?

Where should I configure grails.assets.excludes for the Grails asset pipeline?

According to http://bertramdev.github.io/asset-pipeline/guide/configuration.html, you can include or exclude Asset Pipeline files.

However, It does not specify the location to add. For example, do we put it in Config.groovy?

I never seem to use the following code:

index.gsp:

application.css:

*= require_tree ../stylesheets

testing.css (located in assets / stylesheets/testing.css):

body {background: green; }

Config.groovy (I assume this is where the configuration is added) :

grails.assets.excludes = ["**/testing.css"]

Except for one problem, everything else works: it will always Will not rule out testing.css.

Does anyone actually make it work? I have tried adding the configuration to BuildConfig.groovy, and it doesn’t work either.

Version in use:

> Grails 2.4.2
>Compilation”: asset- pipeline: 1.8.11″

For grails 3.1, it will be in the build.gradle file: < p>

assets {
minifyJs = true
minifyCss = true
excludes = ["**/*.html"]
}

Where should I configure grails.assets.excludes for the Grails asset pipeline?

According to http://bertramdev.github.io/asset-pipeline/guide/configuration.html, you can include or exclude Asset Pipeline files.

However, It does not specify the location to add. For example, do we put it in Config.groovy?

I never seem to use the following code:

index.gsp:

application.css:

*= require_tree ../stylesheets

testing.css (located in assets / stylesheets/testing.css):

body {background: green; }

Config.groovy (I assume this is where the configuration is added) :

grails.assets.excludes = ["**/testing.css"]

Except for one problem, everything else works: it will always Will not rule out testing.css.

Does anyone actually make it work? I have tried adding the configuration to BuildConfig.groovy, and it doesn’t work either.

Version in use:

> Grails 2.4.2
>Compilation”: asset- pipeline: 1.8.11″

For grails 3.1, it will be in the build.gradle file:

assets {
minifyJs = true
minifyCss = true
excludes = ["**/*.html"]
}

< p>

Leave a Comment

Your email address will not be published.