aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-28 16:48:14 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-28 16:48:14 -0700
commitc68516a8088824578a6097a96afaff19728fcfb1 (patch)
tree2466b446fbd84d1dfa6f0229abf76638fa01c890
parentc80eb424078225e0117ef621d5a9317dcf4da7cd (diff)
note on file packager
-rw-r--r--tools/file_packager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/file_packager.py b/tools/file_packager.py
index e5a9025d..a764b746 100644
--- a/tools/file_packager.py
+++ b/tools/file_packager.py
@@ -13,8 +13,6 @@ Usage:
file_packager.py TARGET [--preload A [B..]] [--embed C [D..]] [--compress COMPRESSION_DATA] [--pre-run] [--crunch[=X]]
-Notes:
-
--pre-run Will generate wrapper code that does preloading in Module.preRun. This is necessary if you add this
code before the main file has been loading, which includes necessary components like addRunDependency.
@@ -26,6 +24,11 @@ Notes:
DDS files will not be crunched if the .crn is more recent than the .dds. This prevents a lot of
unneeded computation.
+Notes:
+
+ * The file packager generates unix-style file paths. So if you are on windows and a file is accessed at
+ subdir\file, in JS it will be subdir/file. For simplicity we treat the web platform as a *NIX.
+
TODO: You can also provide .crn files yourself, pre-crunched. With this option, they will be decompressed
to dds files in the browser, exactly the same as if this tool compressed them.
'''