html5 - Browserify with require('fs') -


i trying use browserify on file uses fs object. when browserify it, call require('fs') doesn't transformed , require returns {}.

is there workaround this? i've seen suggestions on stackoverlow , elsewhere, none seem realized.

i hoped create google web packaged app using browserify class teach.

thanks in advance.

which filesystem should browser use then? html5 filesystem not comparable traditional filesystem. doesn't have symlinks, , accessible asynchronously outside web workers.

so answer is: write abstraction layer can rely on fs module when running in node.js, , html5 fs api when running in browser. differences large have browserify translate you.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -