``` { test: /\.js$/, loader: 'string-replace-loader', options: { search: /__\w{6}\b/g, replace: function () { return `${current filename? or pathname?}`; // this.resourcePath ? }, }, ```