wotermelon

Results 9 comments of wotermelon

那你保证发布机器和生产机器系统以及其他因素都一样吗? 否则怎么保证一些node-gyp rebuild的依赖可以在这些机器上通用? 问题不在于依赖应不应该在服务器上安装,而在于如何优雅地启动服务,包括健康检查、流量切换

1、renderer 端 ``` const content = remote.require('fs').readFileSync('/path/to/file'); ``` electron的renderer端可以直接使用node相关模块,为什么不是这样子: ``` const content = require('fs').readFileSync('/path/to/file'); ``` 2、大量使用remote是否会造成内存问题?

@sorrycc 渲染进程可以直接使用node模块。

yeah.like [this](https://github.com/Sethorax/electron-window-state-manager) May be can provide some options on `createNew(...)` or `open(...)`,so we don't need to use another lib.

非常感谢,初学者

Now my solution: ``` action () { this.sao.opts.outDir = this.answers.outputPath } ```

@prasadlakmal I did not use this.Find another solution

``` javascript externals: { 'sqlite3': 'commonjs sqlite3' } ``` I also add this, it still cant not find module sqlite3. Thank you, I would like to use sequelizejs.