Page 1 of 1

Embed css and js files in custom builds?

Posted: 05 Feb 2024, 16:57
by chromo23
What is the right way to do this? I always get lost with defines :shock:
Can it be defined in custom.h?

Re: Embed css and js files in custom builds?

Posted: 26 Feb 2024, 16:30
by bidrohini
Convert your CSS and JavaScript files into byte arrays. You can do this manually by converting the contents of each file into a C or C++ array of bytes. Include these byte arrays in your codebase, typically in a separate header file (e.g., custom.h).

Re: Embed css and js files in custom builds?

Posted: 26 Feb 2024, 16:34
by Ath
bidrohini wrote: 26 Feb 2024, 16:30 Convert your CSS and JavaScript files into byte arrays. You can do this manually by converting the contents of each file into a C or C++ array of bytes. Include these byte arrays in your codebase, typically in a separate header file (e.g., custom.h).
Please don't post googled or AI-generated answers, they are wrong by default, and useless 100% of the time. :evil: