mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-10 21:09:24 +02:00
main: Fail the build if web dist is not present
This commit is contained in:
parent
3cff622c23
commit
0d72fde5ff
@ -30,5 +30,6 @@ set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/http_server/axe-os")
|
||||
if(EXISTS ${WEB_SRC_DIR}/dist/axe-os)
|
||||
spiffs_create_partition_image(www ${WEB_SRC_DIR}/dist/axe-os FLASH_IN_PROJECT)
|
||||
else()
|
||||
message(WARNING "${WEB_SRC_DIR}/dist doesn't exit. Please run 'npm run build' in ${WEB_SRC_DIR}")
|
||||
message(FATAL_ERROR "${WEB_SRC_DIR}/dist doesn't exit. Please run 'npm i && npm run build' in ${WEB_SRC_DIR}")
|
||||
|
||||
endif()
|
Loading…
x
Reference in New Issue
Block a user