-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using PreactJS instead of ReactJS to reduce bundle size #327
Comments
I did start on the preact port a years ago (#57) but gave up as there were too many constraints. In the end I found other optimizations to fit all the code in a 2MB ESP32, plus added many more features needed for my project. |
After fiddling with all the answers from stackoverflow all not working and just by a chance found a solution using the ff. |
Hi @proddy ! |
I use a variation of this project which is deeply embedded into my own project and probably every file has changed in the last 2 years or so. What changes are you after? |
I would like to know what are the changes needed to use Preact in this script. https://github.com/rjwats/esp8266-react/blob/master/scripts/build_interface.py#L25 |
I wouldn't know, I use a different way to build (using vite). But I think @rjjrbatarao gave the answer above |
I did a try but did not see any reduction in resources consumption. |
|
Hi this is a great library for most of projects but for more complex dashboard it would require larger spiffs storage, it would be nice to use PreactJS instead of ReactJS using Preact Compat to reduce bundle size.
The text was updated successfully, but these errors were encountered: