2.0.0 • Published 1 year ago
copy-modify-webpack-plugin v2.0.0
copy-replace-string-webpack-plugins
Plug-in to copy and modify file content
install
yarn add copy-modify-webpack-plugin
or
npm install copy-modify-webpack-plugin
how to use
const CopyModifyWebpackPlugins = require('copy-modify-webpack-plugins');
new CopyModifyWebpackPlugins({
entry: './index.js',
output: `./dir/index.js`,
callback: content => content.replace('searchValue', 'replacer')
})