1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-01 19:00:34 +02:00

gzip compression

This commit is contained in:
XProger
2016-09-01 04:50:02 +03:00
parent f87a72e7fb
commit 1d3a3c6d2f
2 changed files with 8 additions and 1 deletions

6
src/web/.htaccess Normal file
View File

@@ -0,0 +1,6 @@
AddEncoding gzip .gz
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.+)\.(js|data|mem)$ $1.$2.gz [L]

View File

@@ -1,2 +1,3 @@
set SRC=main.cpp set SRC=main.cpp
em++ %SRC% -O2 --llvm-opts 2 --closure 1 -std=c++11 -o OpenLara.js --preload-file ./LEVEL2_DEMO.PHD -I..\ call em++ %SRC% -O2 --llvm-opts 2 --closure 1 -std=c++11 -o OpenLara.js --preload-file ./LEVEL2_DEMO.PHD -I..\
gzip.exe -9 -f OpenLara.data OpenLara.js OpenLara.js.mem