Adds/modifies examples for node.js and webpack.
This commit is contained in:
parent
9228e1ffcf
commit
79c2f69c32
15 changed files with 170 additions and 19 deletions
18
examples/webpack/README.md
Normal file
18
examples/webpack/README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
## Overview
|
||||
|
||||
Example to demonstrate PDF.js library usage with webpack.
|
||||
|
||||
## Getting started
|
||||
|
||||
Build project and install the example dependencies:
|
||||
|
||||
$ node make 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 'entry' loader.
|
Loading…
Add table
Add a link
Reference in a new issue