Rename data folder to webapp_dist

This commit is contained in:
Thomas Basler 2022-06-22 23:16:45 +02:00
parent fb2c7faf33
commit 183b919ae6
8 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -20,7 +20,7 @@ platform = espressif32
build_flags =
${env.build_flags}
-D=${PIOENV}
-DCOMPONENT_EMBED_FILES=data/index.html.gz:data/zones.json.gz:data/favicon.ico:data/js/app.js.gz
-DCOMPONENT_EMBED_FILES=webapp_dist/index.html.gz:webapp_dist/zones.json.gz:webapp_dist/favicon.ico:webapp_dist/js/app.js.gz
lib_deps =
https://github.com/me-no-dev/ESPAsyncWebServer.git

View File

@ -1,14 +1,14 @@
#include "WebApi_webapp.h"
extern const uint8_t file_index_html_start[] asm("_binary_data_index_html_gz_start");
extern const uint8_t file_favicon_ico_start[] asm("_binary_data_favicon_ico_start");
extern const uint8_t file_zones_json_start[] asm("_binary_data_zones_json_gz_start");
extern const uint8_t file_app_js_start[] asm("_binary_data_js_app_js_gz_start");
extern const uint8_t file_index_html_start[] asm("_binary_webapp_dist_index_html_gz_start");
extern const uint8_t file_favicon_ico_start[] asm("_binary_webapp_dist_favicon_ico_start");
extern const uint8_t file_zones_json_start[] asm("_binary_webapp_dist_zones_json_gz_start");
extern const uint8_t file_app_js_start[] asm("_binary_webapp_dist_js_app_js_gz_start");
extern const uint8_t file_index_html_end[] asm("_binary_data_index_html_gz_end");
extern const uint8_t file_favicon_ico_end[] asm("_binary_data_favicon_ico_end");
extern const uint8_t file_zones_json_end[] asm("_binary_data_zones_json_gz_end");
extern const uint8_t file_app_js_end[] asm("_binary_data_js_app_js_gz_end");
extern const uint8_t file_index_html_end[] asm("_binary_webapp_dist_index_html_gz_end");
extern const uint8_t file_favicon_ico_end[] asm("_binary_webapp_dist_favicon_ico_end");
extern const uint8_t file_zones_json_end[] asm("_binary_webapp_dist_zones_json_gz_end");
extern const uint8_t file_app_js_end[] asm("_binary_webapp_dist_js_app_js_gz_end");
void WebApiWebappClass::init(AsyncWebServer* server)
{

View File

@ -2,7 +2,7 @@ const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
productionSourceMap: false,
outputDir: '../data',
outputDir: '../webapp_dist',
filenameHashing: false,
css: {
extract: false,

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
webapp_dist/js/app.js.gz Normal file

Binary file not shown.