1.0.2-b3 • Published 2 months ago
wmlgl-webpack-dist-replace-plugin v1.0.2-b3
webpack-dist-replace-plugin
replace your webpack dist content.
Install
npm install wmlgl-webpack-dist-replace-plugin --save-dev
Usage
const DistReplacePlugin = require('wmlgl-webpack-dist-replace-plugin');
module.exports = {
plugins: [
new DistReplacePlugin({
test: /[.]js$/,
replace: content => content.replace('hello','world')
})
],
......
}