Promote nw.js details to main installation docs - see 6e51f2d

This commit is contained in:
Lovell Fuller 2018-05-19 14:53:22 +01:00
parent 6e51f2d608
commit 0ac5a9ad82
2 changed files with 12 additions and 8 deletions

View File

@ -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)

View File

@ -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