Open silentjay opened 3 years ago
This can be used without build tooling via https://www.skypack.dev/view/nitrous-oxide. But if you're looking for a more traditional UMD build that you can vendor into your source control and include via a regular <script tag (e.g. NOT type="module") then you can checkout turbo and our UMD builds: https://unpkg.com/nitrous-oxide@0.15.0/dist/nitrous-oxide.umd.production.min.js and https://unpkg.com/@hotwired/turbo@7.0.0-beta.4/dist/turbo.es2017-umd.js I think the script tag for turbo would need to be before the script tag for nitrous oxide. Let me know if this works for you or if you run into any issues. Would like to add docs on how to use without build tooling, just haven't had time to test that approach myself.
Thanks for the reply. The skypack import works a charm. Did need to remove the existing turbo script import first.
Any chance of having a vanilla js version of this we can simple add as a script tag in our projects? I'm a backend dev and i'm using turbo specifically to avoid a load of frontend js in my projects and keep them simple. I'm guessing as nitrous-oxide is typescript I'm going to have to install a load of dependencies etc