bundle-collapser icon indicating copy to clipboard operation
bundle-collapser copied to clipboard

Not work with browserify --standalone

Open maxidr opened this issue 11 years ago • 2 comments

Hi!,

I can't make to work this module with the option --standalone of browserify.

I initially use:

browserify index.js --standalone customerInsight > build/client.js

In this case, I can access to customerInsight object in the browser. But, when I use:

browserify index.js --standalone customerInsight | bundle-collapser > build/client.js

I can't access to the object (customerInsight).

What am I doing wrong?

Thanks!

maxidr avatar Dec 08 '14 15:12 maxidr

Any news on this? I'm having the same problem.

pakastin avatar Jul 06 '15 07:07 pakastin

Using it as a plugin instead works for me:

browserify file.js --standalone something --plugin bundle-collapser/plugin

Tyler-Murphy avatar Dec 30 '16 20:12 Tyler-Murphy