Search

Minimal dev environment for Preact + TailwindCSS
Hello,
I am currently trying to implement a webserver on an embedded STM32F439 using the Mongoose library and Preact (3kB React equivalent made especially for embedded solutions).
My speciality is in embedded development and my web dev experience is next to nil, so I have a hard time finding a solution for my problem.
Right now, I tried to use Preact + Vite.js, but it seems to be causing issues when packing my webpage into my embedded system.
The workflow I am using right now is as follows:
- Create a webpage with Preact/TailwindCSS in jsx and build the page with npm run build. If I run npm run dev or start a http server with python3, the webpage loads properly.
- For Mongoose Library, since I don't have a file system, I use their packing utility which takes the webpage files and convert them into a C array that can then be unpacked by the Mongoose Library at runtime.
- Start the embedded server, get an IP and the server is online. At that point, I can customize my paths to s