Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

Include External Javascript Scripts Sugarcube

$
0
0
Twine 2.0.10 with SugarCube 2.1.2.
I'd like to split up my javascript into several files for ease of development, and to write the code using an IDE outside of Twine (it's honestly pretty awful).
What would be the best way to do this?

Some ways I think could work:
1. externally host files and then in the Story javascript have an AJAX call loading them
2. have a local batch script that cats the files together in the right sequence (and optionally minifies them), which I then copy paste into the Story JS

Viewing all articles
Browse latest Browse all 3830

Trending Articles