-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Would be great if I could specify a callback function as a replacement like:
module.exports = {
// ...
module: {
rules: [
{
test: /\.js$/,
loader: 'string-replace-loader',
options: {
search: 'my name',
replace: function(result){
return result.toUpperCase();
},
flags: 'gi'
}
}
]
}
}
ryanwalters, Rincewind3d, gitgrimbo, isumix and crhistianramirez
Metadata
Metadata
Assignees
Labels
No labels