mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Promote nw.js details to main installation docs - see 6e51f2d
This commit is contained in:
parent
6e51f2d608
commit
0ac5a9ad82
@ -161,6 +161,18 @@ Set the Lambda runtime to Node.js 6.10.
|
|||||||
|
|
||||||
To get the best performance select the largest memory available. A 1536 MB function provides ~12x more CPU time than a 128 MB function.
|
To get the best performance select the largest memory available. A 1536 MB function provides ~12x more CPU time than a 128 MB function.
|
||||||
|
|
||||||
|
### NW.js
|
||||||
|
|
||||||
|
Run the `nw-gyp` tool after installation.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd node-modules/sharp
|
||||||
|
nw-gyp rebuild --arch=x64 --target=[your nw version]
|
||||||
|
node node_modules/sharp/install/dll-copy
|
||||||
|
```
|
||||||
|
|
||||||
|
See also http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/
|
||||||
|
|
||||||
### Build tools
|
### Build tools
|
||||||
|
|
||||||
* [gulp-responsive](https://www.npmjs.com/package/gulp-responsive)
|
* [gulp-responsive](https://www.npmjs.com/package/gulp-responsive)
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
# Rebuild
|
|
||||||
* after installing the Sharp module with CLI cd into the `node-modules/sharp`
|
|
||||||
* rebuild `nw-gyp rebuild --target=[your nw version] --arch=[x64,ia32]`without brackets, [for more details](http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/)
|
|
||||||
* run `node node_modules\sharp\install\dll-copy`
|
|
||||||
## Prerequisites
|
|
||||||
* node
|
|
||||||
* nw-gyp
|
|
||||||
* sharp
|
|
Loading…
x
Reference in New Issue
Block a user