kripken/emscripten — pull request #586 by larsxschneider (2012-09-25 12:56:51+00:00)
Title: Add option "--split <size>" to splits javascript file in pieces.

My generated debug builds got pretty big and as consequence using the debugger in Chrome was not possible anymore.

Pass the split option to create small chunks.

See here for the discussion: kripken/emscripten/issues#576

---

I implemented the splitter in Python because everything else is in Python as well. It's my first Python script... so bear with me :-)

---

Thanks to @torsten for the final hint to make it work.