-
Notifications
You must be signed in to change notification settings - Fork 110
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
Just using it... #31
Comments
Insert in your <script defer type="module">
import flamethrower from '/flamethrower.js';
flamethrower({ log: true, pageTransitions: true });
</script> Use |
just a little addition clone it and run npm run build to generate the main.js bundle, then use it in a module script. |
Or even use <script type="module">
import flamethrower from 'https://esm.sh/v90/flamethrower-router'
flamethrower({ log: true, pageTransitions: true });
</script> To use an ESM cdn to play around with. @Oskar1504 Just a tip: |
@IBIT-ZEE You could also include from unpkg, since Jeff published this to npm:
URL found via the ending-slash trick: NOTE: I haven't tried this yet, but it seems to use the standard Universal Module Definition |
How about an example/video on how to use it without npm...
The text was updated successfully, but these errors were encountered: