Skip to content

Commit

Permalink
fix: gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
BCsabaEngine committed Aug 14, 2024
1 parent dcba9dd commit c70626b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
5 changes: 2 additions & 3 deletions demo/esp32/include/svelteesp32async.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
//engine: ESPAsyncWebServer
//cmdline: -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler
//created: 8/14/2024 8:14:54 PM
//cmdline: -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler --gzip=compiler
//created: 8/14/2024 8:35:04 PM
//files: 5
//memory: 471154

#include <Arduino.h>
#include <ESPAsyncWebServer.h>

#define SVELTEESP32_ENABLE_GZIP

#define SVELTEESP32_COUNT 5
#define SVELTEESP32_SIZE 471154
Expand Down
5 changes: 2 additions & 3 deletions demo/esp32/include/svelteesp32psychic.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
//engine: PsychicHttpServer
//cmdline: -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag&#x3D;compiler
//created: 8/14/2024 8:14:55 PM
//cmdline: -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag&#x3D;compiler --gzip&#x3D;compiler
//created: 8/14/2024 8:35:04 PM
//files: 5
//memory: 471154

#include <Arduino.h>
#include <PsychicHttp.h>
#include <PsychicHttpsServer.h>

#define SVELTEESP32_ENABLE_GZIP

#define SVELTEESP32_COUNT 5
#define SVELTEESP32_SIZE 471154
Expand Down
6 changes: 4 additions & 2 deletions demo/esp32/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ build_flags =
-D ASYNC
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer

[env:async-compiler]
[env:async-enable]
build_flags =
-D ASYNC
-D SVELTEESP32_ENABLE_ETAG
-D SVELTEESP32_ENABLE_GZIP
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer

[env:psychic]
build_flags =
-D PSYCHIC
lib_deps = hoeken/PsychicHttp

[env:psychic-compiler]
[env:psychic-enable]
build_flags =
-D PSYCHIC
-D SVELTEESP32_ENABLE_ETAG
-D SVELTEESP32_ENABLE_GZIP
lib_deps = hoeken/PsychicHttp
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
},
"homepage": "https://github.com/BCsabaEngine/svelteesp32",
"scripts": {
"dev:async": "nodemon src/index.ts -- -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler",
"dev:psychic": "nodemon src/index.ts -- -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag=compiler",
"run:async": "tsx src/index.ts -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler",
"run:psychic": "tsx src/index.ts -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag=compiler",
"dev:async": "nodemon src/index.ts -- -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler --gzip=compiler",
"dev:psychic": "nodemon src/index.ts -- -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag=compiler --gzip=compiler",
"run:async": "tsx src/index.ts -e async -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32async.h --etag=compiler --gzip=compiler",
"run:psychic": "tsx src/index.ts -e psychic -s ./demo/svelte/dist -o ./demo/esp32/include/svelteesp32psychic.h --etag=compiler --gzip=compiler",
"run:both": "npm run run:async && npm run run:psychic",
"platformio": "~/.platformio/penv/bin/pio run -d ./demo/esp32",
"run:both:build": "npm run run:both && npm run platformio",
Expand Down

0 comments on commit c70626b

Please sign in to comment.