Update README and Fix #1140

This commit is contained in:
MoyuScript 2017-08-01 00:31:41 +08:00
parent 441d349948
commit 983afc3947

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). 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 $ npm run build:browser
Skip lint and tests and simply build from source:
$ grunt build
### Running tests ### ### Running tests ###
@ -77,9 +73,9 @@ Start by downloading the dependencies:
$ npm install $ npm install
Run qunit tests: Run tests:
$ grunt test $ npm test
### Examples ### ### Examples ###