replace-bundle-webpack-plugin

1.0.0 • Public • Published

replace-bundle-webpack-plugin

replace string for webpack compiled bundle, different with string-replace-webpack-plugin, this plugin is run at depends modules compiled, so you can replace any string, even require.

Example Usage

var ReplaceBundleStringPlugin = require('replace-bundle-webpack-plugin')
 
plugins: [
    new ReplacePlugin([{
        partten: /window.require/g,
        replacement: function () {
            return 'require';
        }
    }])
]
 

Readme

Keywords

Package Sidebar

Install

npm i replace-bundle-webpack-plugin

Weekly Downloads

736

Version

1.0.0

License

MIT

Last publish

Collaborators

  • honkang