Excluding files/directories from WAR packaging in Grails 3
<p>In my Grails 3.1.10 app, I have a few files in <code>src/main/webapp/ng</code> 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 <code>grails package</code> command.</p>

<p>In Grails 2.x app, we have achieved it via <code>BuildConfig.groovy</code> setting:</p>

<pre><code>grails.war.resources = { stagingDir, args -&gt;
    delete(dir: "${stagingDir}/ng/node_modules")
    delete(dir: "${stagingDir}/ng/app")
    delete(dir: "${stagingDir}/ng/bower_components")
}
</code></pre>

<p>How can we achieve that in Grails 3? I tried searching for it but didn't find anything.</p>