Well, fs is too much for the ESP8266.
store_webdata.js
require("Storage").write("mypage", ` your page data `); require("Storage").write("mycss", ` your css data `);
in_your_app.js
mypage = require('Storage').read('mypage'); mycss = require('Storage').read('mycss');
On ESP8266 Storage is located in the memory mapped section, using this technic is fast and saves vars and heap.
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well, fs is too much for the ESP8266.
store_webdata.js
in_your_app.js
On ESP8266 Storage is located in the memory mapped section, using this technic is fast and saves vars and heap.