pdf.js/examples/webpack
2017-06-12 10:22:16 -05:00
..
.gitignore Adds/modifies examples for node.js and webpack. 2015-12-21 13:46:50 -06:00
index.html Removing "entry-loader" dependency from webpack. 2016-04-13 08:24:25 -05:00
main.js Removing "entry-loader" dependency from webpack. 2016-04-13 08:24:25 -05:00
package.json Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
README.md Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
webpack.config.js Removing "entry-loader" dependency from webpack. 2016-04-13 08:24:25 -05:00

Overview

Example to demonstrate PDF.js library usage with Webpack.

Getting started

Build project and install the example dependencies:

$ gulp dist-install
$ 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 packaging of the main application and PDF.js worker code, and the workerSrc path shall be set to the latter file.