core
core copied to clipboard
It is impossible to check context in loader's include function
When I use include: function(path){}
parameter for loader, it is impossible to check context (file which requires this path).
Example:
loaders: [
{
test: /.svg/,
include: function(path) {
//I want to check context here, but it is impossible
console.log('path', path)
},
loader: 'svgo'
}
]