Update README and Fix #1140

This commit is contained in:
Niklas von Hertzen 2017-08-01 00:31:41 +08:00
parent 8a6fb5f733
commit 50579f399e

View File

@ -51,21 +51,17 @@ The function returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/Ja
The library uses [grunt](http://gruntjs.com/) for building. Alternatively, you can download the latest build from [here](https://github.com/niklasvh/html2canvas/blob/master/dist/html2canvas.js).
Clone git repository with submodules:
Clone git repository:
$ git clone --recursive git://github.com/niklasvh/html2canvas.git
$ git clone git://github.com/niklasvh/html2canvas.git
Install Grunt and uglifyjs:
Install dependencies:
$ npm install -g grunt-cli uglify-js
$ npm install
Run the full build process (including lint, qunit and webdriver tests):
Build browser bundle
$ grunt
Skip lint and tests and simply build from source:
$ grunt build
$ npm run build:browser
### Running tests ###
@ -77,9 +73,9 @@ Start by downloading the dependencies:
$ npm install
Run qunit tests:
Run tests:
$ grunt test
$ npm test
### Examples ###