how to config webpack loader exclude path that contains 'fonts'
<pre><code>{   test: /\.(png|jpg|gif|svg)$/, 
    loader: 'url?limit=10000&amp;name=/Presentation/_dist/images/[name].[ext]', 
    exclude: path.resolve(__dirname, "MY-FONTS-FOLDER")
}
</code></pre>

<p>Some fonts file name are ended with SVG, so I'd like to exclude any files that its path contains 'fonts', e.g: 'C:\project\app\module\fonts', 'C:\project\app\module2\fonts'. </p>

<p>The problem is the program is loader test condition seems only apply to file name, or specific path, but how can I test path string contain any 'fonts' string? </p>