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';
        }
    }])
]
 

/replace-bundle-webpack-plugin/

    Package Sidebar

    Install

    npm i replace-bundle-webpack-plugin

    Weekly Downloads

    463

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • honkang