1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 01:28:06 +02:00
pdf.js/examples/webpack
Tim van der Meij b293d1caf5 Update Webpack and Browserify example README files
Previously the commands were not properly parsed as such by GitHub
because they need to be indented with four spaces.

Furthermore, address some minor textual nits.
2016-04-06 18:36:41 +02:00
..
.gitignore Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
index.html Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
main.js Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
package.json Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
README.md Update Webpack and Browserify example README files 2016-04-06 18:36:41 +02:00
webpack.config.js Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00

Overview

Example to demonstrate PDF.js library usage with Webpack.

Getting started

Build project and install the example dependencies:

$ gulp dist
$ cd examples/webpack
$ npm install

To build Webpack bundles, run node_modules/.bin/webpack. If you are running a web server, you can observe the build results at http://localhost:8888/examples/webpack/index.html

See main.js and webpack.config.js files. Please notice that PDF.js packaging requires the entry loader.