Merge pull request #7158 from timvandermeij/readme
Update Webpack and Browserify example README files
This commit is contained in:
commit
911a2ca1c6
@ -1,6 +1,6 @@
|
|||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Example to demonstrate PDF.js library usage with browserify.
|
Example to demonstrate PDF.js library usage with Browserify.
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ Build project and install the example dependencies:
|
|||||||
$ cd examples/browserify
|
$ cd examples/browserify
|
||||||
$ npm install
|
$ npm install
|
||||||
|
|
||||||
To build browserify bundles, run `gulp build`. If you are running
|
To build Browserify bundles, run `gulp build`. If you are running
|
||||||
a web server, you can observe the build results at
|
a web server, you can observe the build results at
|
||||||
http://localhost:8888/examples/browserify/index.html
|
http://localhost:8888/examples/browserify/index.html
|
||||||
|
|
||||||
See main.js, worker.js and gulpfile.js files. Please notice that PDF.js
|
See main.js, worker.js and gulpfile.js files. Please notice that PDF.js
|
||||||
packaging requires packaging of the main application and PDF.js worker code,
|
packaging requires packaging of the main application and PDF.js worker code,
|
||||||
and the workerSrc path shall be set to the latter file.
|
and the `workerSrc` path shall be set to the latter file.
|
||||||
|
|
||||||
Alternatives to the gulp commands (without compression) are:
|
Alternatives to the gulp commands (without compression) are:
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Example to demonstrate PDF.js library usage with webpack.
|
Example to demonstrate PDF.js library usage with Webpack.
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
@ -10,9 +10,9 @@ Build project and install the example dependencies:
|
|||||||
$ cd examples/webpack
|
$ cd examples/webpack
|
||||||
$ npm install
|
$ npm install
|
||||||
|
|
||||||
To build webpack bundles, run `node_modules/.bin/webpack`. If you are running
|
To build Webpack bundles, run `node_modules/.bin/webpack`. If you are running
|
||||||
a web server, you can observe the build results at
|
a web server, you can observe the build results at
|
||||||
http://localhost:8888/examples/webpack/index.html
|
http://localhost:8888/examples/webpack/index.html
|
||||||
|
|
||||||
See main.js and webpack.config.js files. Please notice that PDF.js packaging
|
See main.js and webpack.config.js files. Please notice that PDF.js packaging
|
||||||
requires 'entry' loader.
|
requires the `entry` loader.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user