string-replace-loader2
v1.0.0
Published
A webpack loader to replace a string or pattern
Downloads
3
Readme
string-replace-loader2
A webpack loader to replace a string or pattern
Installation
npm install string-replace-loader2
How to Use
// webpack.config.js
...
module: {
rules: [
{
test: /\.js$/,
loader: 'string-replace-loader2',
options: {
find: /some_pattern/g,
replace: function(match) {
return 'something else'
}
}
},
]
}