Open pavel06081991 opened 8 years ago
I had the same question and have just figured it out for myself.
Within the replacement function you can access the following properties of 'this': https://webpack.github.io/docs/loaders.html#loader-context
replacement: function (match, p1, offset, string) {
console.log(this.resource)
}
Hi. Is it possible to get the path of file which is processed by loader?