Rename data folder to webapp_dist
This commit is contained in:
parent
fb2c7faf33
commit
183b919ae6
Binary file not shown.
@ -20,7 +20,7 @@ platform = espressif32
|
|||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
-D=${PIOENV}
|
-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 =
|
lib_deps =
|
||||||
https://github.com/me-no-dev/ESPAsyncWebServer.git
|
https://github.com/me-no-dev/ESPAsyncWebServer.git
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
#include "WebApi_webapp.h"
|
#include "WebApi_webapp.h"
|
||||||
|
|
||||||
extern const uint8_t file_index_html_start[] asm("_binary_data_index_html_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_data_favicon_ico_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_data_zones_json_gz_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_data_js_app_js_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_index_html_end[] asm("_binary_webapp_dist_index_html_gz_end");
|
||||||
extern const uint8_t file_favicon_ico_end[] asm("_binary_data_favicon_ico_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_data_zones_json_gz_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_data_js_app_js_gz_end");
|
extern const uint8_t file_app_js_end[] asm("_binary_webapp_dist_js_app_js_gz_end");
|
||||||
|
|
||||||
void WebApiWebappClass::init(AsyncWebServer* server)
|
void WebApiWebappClass::init(AsyncWebServer* server)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@ const { defineConfig } = require('@vue/cli-service')
|
|||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
transpileDependencies: true,
|
transpileDependencies: true,
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
outputDir: '../data',
|
outputDir: '../webapp_dist',
|
||||||
filenameHashing: false,
|
filenameHashing: false,
|
||||||
css: {
|
css: {
|
||||||
extract: false,
|
extract: false,
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
webapp_dist/js/app.js.gz
Normal file
BIN
webapp_dist/js/app.js.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user