Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish dist global version for use in npmcdn #38

Open
marshallswain opened this issue Jul 13, 2016 · 3 comments
Open

Publish dist global version for use in npmcdn #38

marshallswain opened this issue Jul 13, 2016 · 3 comments

Comments

@marshallswain
Copy link
Contributor

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 either window.yo or window.yoyo, but those are undefined. What is the expected usage for a standalone build?

@ahdinosaur
Copy link

hey @marshallswain 😄

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

@marshallswain
Copy link
Contributor Author

Thanks @ahdinosaur that's just what I needed to get my feathers-chat demo to run. :)

@giacomo-cosimato
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants