In my Grails 3.1.10 app, I have a few files in src/main/webapp/ng
directory for an Angular app and I want to exclude few of the directories/files from packaging to the WAR file at the time of grails package
command.
In Grails 2.x app, we have achieved it via BuildConfig.groovy
setting:
grails.war.resources = { stagingDir, args ->
delete(dir: "${stagingDir}/ng/node_modules")
delete(dir: "${stagingDir}/ng/app")
delete(dir: "${stagingDir}/ng/bower_components")
}
How can we achieve that in Grails 3? I tried searching for it but didn't find anything.