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

Use choo directly in the frontend #671

Closed
fredoist opened this issue Jul 2, 2018 · 2 comments
Closed

Use choo directly in the frontend #671

fredoist opened this issue Jul 2, 2018 · 2 comments

Comments

@fredoist
Copy link

fredoist commented Jul 2, 2018

Is there any way to use choo directly in the frontend without npm?

I mean something like:

<script src="dist/choo.js"></script>
<script>
  // You can use choo now
  var app = choo();
  // app.something() ...
</script>
@YerkoPalma
Copy link
Member

choo and nanohtml includes umd builds. I have set up a minimal example in codepen here.

The key is to refer the bundle files in the dist folder https://unpkg.com/choo/dist/bundle.js (notice that there is also a minified bundler version there)

@fredoist
Copy link
Author

fredoist commented Jul 5, 2018

It works!

Thank you @YerkoPalma

@fredoist fredoist closed this as completed Jul 5, 2018
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

2 participants