diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/build/pack.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/build/pack.js b/build/build/pack.js index 5706a2187..6a04e7224 100644 --- a/build/build/pack.js +++ b/build/build/pack.js @@ -12,7 +12,8 @@ var base62 = true; var shrink = true; var script = readFile(inFile); +var header = script.match(/\/\*(.|\n)*?\*\//)[0]; var packer = new Packer; var packedScript = packer.pack(script, base62, shrink); -writeFile(outFile, packedScript); +writeFile(outFile, header + "\n" + packedScript); |