Skip to content
jvilk edited this page Dec 16, 2013 · 2 revisions

The default BrowserFS library ships with every backend in one convenient file. However, you may wish to make a smaller build with only the backends you need.

You can do that by doing the following:

  1. Clone the BrowserFS repo and ensure you can build it (npm install && grunt).
  2. In Gruntfile.js, change the requirejs configuration's include property to only list the backends you want.
  3. In build/outro.js, change the require lines so that it only requires the backends you want.
  4. Rerun grunt, and lib/browserfs.js will only contain the backends you listed.
Clone this wiki locally