-
Notifications
You must be signed in to change notification settings - Fork 229
Custom builds
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:
- Clone the BrowserFS repo and ensure you can build it (
npm install && grunt). - In
Gruntfile.js, change therequirejsconfiguration'sincludeproperty to only list the backends you want. - In
build/outro.js, change therequirelines so that it onlyrequiresthe backends you want. - Rerun
grunt, andlib/browserfs.jswill only contain the backends you listed.