mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-01 19:00:34 +02:00
gzip compression
This commit is contained in:
6
src/web/.htaccess
Normal file
6
src/web/.htaccess
Normal 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]
|
@@ -1,2 +1,3 @@
|
||||
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
|
Reference in New Issue
Block a user