replace-task-webpack-plugin
v1.0.1
Published
replace task for webpack
Downloads
7
Readme
replace-task-webpack-plugin
A gulp-replace-task port to webpack
Usage
To replace all @@foo
to bar
, and replace all /baz/
to bazbaz
.
// webpack.config.js
module.exports = {
// ... other configs
plugins: [
new ReplaceTaskWebpackPlugin({
patterns: [
{
match: 'foo',
replacement: 'bar'
},
{
match: /baz/g,
replacement: function(){
return 'bazbaz';
}
}
]
})
]
};
Also see
License
MIT