Skip to content

入坑Electron经验(持续更新) #8

Description

@liyatang

安装 electron

你会卡在安装 electron 上 ,解决方案 https://segmentfault.com/q/1010000007594059

注意,electron_mirror="https://npm.taobao.org/mirrors/electron/" 是小写,是小写,是小写,是小写,是小写。

Node8.0.0bug

用到了 archiver ,出现了bug, node官方的bug,已修复 issue

升级node8 版本即可

webpack target

electron内用webpack和web内用webpack是不一样的。 需要设置target: 'electron-renderer'

https://webpack.js.org/configuration/target/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions