aboutsummaryrefslogtreecommitdiff
path: root/tools/file_packager.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-30 10:24:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-30 10:24:53 -0700
commitb614f2bc5d9fc421565824b1ceb9a3384f26f35f (patch)
tree243c47baa4c6ce4273a5743d79f3c0dbc78789e5 /tools/file_packager.py
parentc70758e3b49beb016a3d9db7b609c499d55de48b (diff)
parent7eaa78060c34489c7e56193c725641303d520f31 (diff)
Merge branch 'incoming'
Diffstat (limited to 'tools/file_packager.py')
-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.
'''