--preload-file will save it as a binary file on the side, which is more
optimal.

We can't use a string in embed-file because not all characters can be
represented that way without escaping, which i'm not sure how hard would be
to implement. In any case, --preload-file is the recommended approach.

- Alon



On Wed, Apr 23, 2014 at 5:21 PM, <[email protected]> wrote:

> I'm using the --embed-file option to embed a 300KB text file but it's
> adding an additional 1.4MB to my Javascript file.  Is it possible to have
> it embedded as a string?  After looking at the code produced it's storing
> the text file as an array of numbers which also significantly increases
> build time if I use the --closure option too.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to