RangerMauve / hyper-sdk

Make your own hyper apps!
https://www.youtube.com/watch?v=HyHk4aImd_I&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=20
MIT License
290 stars 46 forks source link

Added docs about webpack config #43

Closed urgent closed 4 years ago

urgent commented 4 years ago

This commit provides a webpack config for a bundle similiar to browserify.

Browserify bundles to an empty function for fs, and for each module declares fs as a graceful-fs require.

https://benclinkinbeard.com/posts/how-browserify-works/

The webpack bundle built from this commit's config resolves graceful-fs as an alias to fs.

fs used in dat-sdk/index for browser/hyperdrive IO:

https://github.com/random-access-storage/random-access-web

RangerMauve commented 4 years ago

Thank you for the PR! Added some questions about the config. Also, mind if I add this to the docs for the SDK on our docs website? https://github.com/datproject/docs/pull/170

urgent commented 4 years ago

You're welcome.

Not at all! Glad I could contribute.

RangerMauve commented 4 years ago

Sweet. Thank you! 😁