-
Notifications
You must be signed in to change notification settings - Fork 221
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 therequirejs
configuration'sinclude
property to only list the backends you want. - In
build/outro.js
, change therequire
lines so that it onlyrequires
the backends you want. - Rerun
grunt
, andlib/browserfs.js
will only contain the backends you listed.