node-uglifier
node-uglifier copied to clipboard
Allow merge npm modules
At the moment, is there any option to also merge all npm dependencies into the output file? Thanks
+1
Ok I will make an option to allow that.
Hi I added the option: packNodeModules like new NodeUglifier("lib_compiled/test/express/server.js",{packNodeModules:true}) The problem is that a lot of the libraries use dynamic statements within require. It would be a large task to kinda build a cache of all possible files, native files and stub out the dynamic stuff. I might do it once, but I do not need this for myself
+1
Including dynamic requires into the bundle would be awesome.