browserify / bundle-collapser

convert bundle paths to IDs to save bytes in browserify bundles
Other
194 stars 21 forks source link

Not work with browserify --standalone #5

Open maxidr opened 9 years ago

maxidr commented 9 years ago

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!

pakastin commented 9 years ago

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

Tyler-Murphy commented 7 years ago

Using it as a plugin instead works for me:

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