2015-12-22 04:46:50 +09:00
|
|
|
## Overview
|
|
|
|
|
2016-04-07 01:36:41 +09:00
|
|
|
Example to demonstrate PDF.js library usage with Webpack.
|
2015-12-22 04:46:50 +09:00
|
|
|
|
|
|
|
## Getting started
|
|
|
|
|
|
|
|
Build project and install the example dependencies:
|
|
|
|
|
2016-04-07 01:36:41 +09:00
|
|
|
$ gulp dist
|
|
|
|
$ cd examples/webpack
|
|
|
|
$ npm install
|
2015-12-22 04:46:50 +09:00
|
|
|
|
2016-04-07 01:36:41 +09:00
|
|
|
To build Webpack bundles, run `node_modules/.bin/webpack`. If you are running
|
2015-12-22 04:46:50 +09:00
|
|
|
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
|
2016-04-07 01:36:41 +09:00
|
|
|
requires the `entry` loader.
|