Automatically build UI before compiling

This commit is contained in:
Woody 2023-12-19 22:23:01 +01:00
parent 43f5e4360d
commit e778b02c0c
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2
2 changed files with 4 additions and 0 deletions

3
pio-scripts/build_ui.py Normal file
View File

@ -0,0 +1,3 @@
Import('env')
env.Execute("npm run build")

View File

@ -155,6 +155,7 @@ extra_scripts =
post:pio-scripts/output_bins.py
post:pio-scripts/strip-floats.py
pre:pio-scripts/user_config_copy.py
pre:pio-scripts/build_ui.py
# ------------------------------------------------------------------------------
# COMMON SETTINGS: