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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -