OpenLightingProject / rp2040-dmxsun

RP2040-based USB DMX dongle with integrated web server
GNU General Public License v3.0
87 stars 17 forks source link

Re-work CMake files so that the Web UI is built properly and no longer hacky #65

Closed kripton closed 1 year ago

kripton commented 1 year ago

In the past, the Web UI was built (running "npm install" and "npm run build") during the "Configure CMake" phase. This was hacky but worked back then. The disadvantage is that the Web UI is not re-built automatically when something changes. This PR splits the Web UI build steps into multiple targets and makes sure they depend on each other. The Web UI is automatically re-built if there are changes and only if.

Fixes #61