mirror of
https://github.com/XProger/OpenLara.git
synced 2025-01-18 05:18:59 +01:00
gzip compression
This commit is contained in:
parent
f87a72e7fb
commit
1d3a3c6d2f
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
|
Loading…
x
Reference in New Issue
Block a user