electron开发准备工作

2021-04-30

electron开发准备工作

npmrc

配置

electron_mirror=http://npm.taobao.org/mirrors/electron/
ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder
binaries/sentrycli_cdnurl=https://npm.taobao.org/mirrors/sentry-cli
registry=https://registry.npm.taobao.org
sass_binary_site=https://npm.taobao.org/mirrors/node-sass

sass_binary_site如果需要scss做css预处理的建议配置
electron_mirror在下载electron打包时的依赖时会下载
ELECTRON_BUILDER_BINARIES_MIRROR使用electron-builder时会用到

打包linux时遇到的appimage和snap会超时,配置ELECTRON_BUILDER_BINARIES_MIRROR可以解决

评论(0条):