1.0.1 • Published 10 years ago
replace-task-webpack-plugin v1.0.1
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