Generated index.html customization

I want to pimp the html5 template provided by Lime.
At the moment it references linked libraries (howler & pako) and the OpenFL
application itself by:

	::if linkedLibraries::::foreach (linkedLibraries)::
	<script type="text/javascript" src="::__current__::"></script>::end::::end::

which generates this:

        <script type="text/javascript" src="./lib/howler.min.js"></script>
	<script type="text/javascript" src="./lib/pako.min.js"></script>
	<script type="text/javascript" src="./AwesomeApplication.js"></script>

Is there a way to modify the template that it includes the actual JavaScript instead
of a link to the file?

	<script type="text/javascript">/*Howler JS here*/</script>
	<script type="text/javascript">/*Pako JS here*/</script>
	<script type="text/javascript">/*AwesomeApplication JS here*/</script>

Not currently, but perhaps we could consider a <dependency embed="true" /> behavior. Is the goal for including smaller scripts that don’t necessarily benefit from being in a separate file?

As an alternative, should we consider something that blobs all the JS files into one?

1 Like

Hey singmajesty!

This ain’t high-priority! :wink:
We once decided to have all our JavaScript inside a single file
and some projects need small adjustments from time to time. At the
moment I have to manually copy & paste the scripts every time so
I decided to ask if there’s a hidden option I’m not aware of.

<dependency embed="true" />

Sounds like a good idea! It’s really not that important though.
I’m just a lazy bum. :wink:

Hey, just discovered this:

Perhaps for Haxe 3.4+ we can embed our dependency scripts for Lime and OpenFL into the application JS file