Update readme with what files are needed.

This commit is contained in:
Brendan Dahl 2013-09-05 13:05:02 -07:00
parent 7cf8b8d70c
commit 494008eca0

View File

@ -72,15 +72,16 @@ You can also view all the test pdf files on the right side serving
## Building PDF.js ## Building PDF.js
In order to bundle all `src/` files into a final `pdf.js` and build the generic In order to bundle all `src/` files into two productions scripts and build the generic
viewer, issue: viewer, issue:
$ node make generic $ node make generic
This will generate the file `build/generic/build/pdf.js` that can be included in This will generate `pdf.js` and `pdf.worker.js` in the `build/generic/build/` directory.
your final project. The pdf.js file is large and should be minified for Both scripts are needed but only `pdf.js` needs to be included since `pdf.worker.js` will
production. Also, if you would like to support more browsers than Firefox you'll be loaded by `pdf.js`. If you want to support more browsers than Firefox you'll also need
also need to include `compatibility.js` from `build/generic/web/`. to include `compatibility.js` from `build/generic/web/`. The PDF.js files are large and
should be minified for production.
## Learning ## Learning