node-uglifier icon indicating copy to clipboard operation
node-uglifier copied to clipboard

Allow merge npm modules

Open zanona opened this issue 8 years ago • 4 comments

At the moment, is there any option to also merge all npm dependencies into the output file? Thanks

zanona avatar Mar 05 '16 22:03 zanona

+1

geof90 avatar May 06 '16 07:05 geof90

Ok I will make an option to allow that.

zsoltszabo avatar May 09 '16 13:05 zsoltszabo

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

zsoltszabo avatar Jan 30 '17 13:01 zsoltszabo

+1

Including dynamic requires into the bundle would be awesome.

rahul-desai3 avatar May 10 '17 00:05 rahul-desai3