title: webpack minify with global variables and methods for selective files in React
body: <p>I have created a React JS application. I use webpack to minimize my javascript code. I need to provide one single javascript file as output(vendor + app code) to another tool which integrates this. the problem when i try to minimize my code using uglify plugin or '-p' option with webpack command webpack removes all global variables and methods as unused(esp in one particular vendor file) but they are used in my code. so is there is any to minimize using webpack but not remove global variables in some selective files.</p>