Open marshallswain opened 8 years ago
hey @marshallswain :smile:
What is the expected usage for a standalone build?
i think you want (from within this repo's working directory):
browserify --standalone yo index.js > yo-yo.js
.
more info on browserify standalone: browserify-handbook#standalone
Thanks @ahdinosaur that's just what I needed to get my feathers-chat demo to run. :)
thanks @ahdinosaur that should be in the docs
I tried with browserify -r yo-yo > yo-yo.js
as specified in the front page, but the resulting export was an empty object
For making quick demos, it would be nice to be able to use this directly in a script tag.
On a related note, I made a standalone version by running
browserify -r yo-yo > yo-yo.js
. I expected to find it available as eitherwindow.yo
orwindow.yoyo
, but those are undefined. What is the expected usage for a standalone build?