replace-bundle-webpack-plugin

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 ```js var Rep

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
replace-bundle-webpack-plugin
931.0.08 years ago8 years agoMinified + gzip package size for replace-bundle-webpack-plugin in KB

Readme

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