diff --git a/index.html b/index.html index 99c2aaa..d2ed963 100644 --- a/index.html +++ b/index.html @@ -140,7 +140,7 @@
  • Download the uncompressed source - [19.0kb] + [33.0kb]
  • diff --git a/utils/build.py b/utils/build.py index 0ec66d7..2772850 100644 --- a/utils/build.py +++ b/utils/build.py @@ -121,15 +121,17 @@ def build(jssrc, csssrc=list([''])): f.write(code) compiled = compile(code) - outpath = os.path.join(BUILD_ROOT, BUILD_NAME+'.min.js') - with open(outpath,'w') as f: + outpathmin = os.path.join(BUILD_ROOT, BUILD_NAME+'.min.js') + with open(outpathmin,'w') as f: f.write(compiled) size = bytes_to_kb(os.path.getsize(outpath)) + sizemin = bytes_to_kb(os.path.getsize(outpathmin)) with open(INDEX,'r') as f: index = f.read() with open(INDEX,'w') as f: - index = re.sub(r'\[[0-9.]+kb\]','[%skb]'%(size,),index) + index = re.sub(r'\[[0-9.]+kb\]','[%skb]'%(size,),index) + index = re.sub(r'\[[0-9.]+kb\]','[%skb]'%(sizemin,),index) f.write(index) print('DONE. Built files in %s.'%(BUILD_ROOT,))