瀏覽代碼

Fix build script.

pull/5/head
Matthew Petroff 11 年之前
父節點
當前提交
5735892aca
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      utils/build.py

+ 1
- 1
utils/build.py 查看文件

@@ -63,7 +63,7 @@ def htmlCompress(text):
with os.fdopen(in_tuple[0], 'w') as handle:
handle.write(text)
out_tuple = tempfile.mkstemp()
os.system("java -jar htmlcompressor-1.5.3.jar --remove-intertag-spaces --remove-quotes --compress-js --js-compressor closure -o %s %s" % (out_tuple[1], in_tuple[1]))
os.system("java -jar htmlcompressor-1.5.3.jar --remove-intertag-spaces --remove-quotes -o %s %s" % (out_tuple[1], in_tuple[1]))
with os.fdopen(out_tuple[0], 'r') as handle:
compressed = handle.read()
os.unlink(in_tuple[1])


Loading…
取消
儲存