Feature
html-loader should support filtering URL paths
1. {Regex}
Ignores URLs matching the exclude patttern
webpack.config.js
{
loader: `html-loader`
options: {
url: /dirname/,
import: /dirname/
}
}
2. {Function}
Ignores URLs based on a custom filter {Function} returning a {Boolean} value
webpack.config.js
{
loader: `html-loader`
options: {
url (url) {
return url.includes('dirname') : true : false
},
import (url) {
return url.includes('dirname') : true : false
}
}
}