关于外置配置文件的处理方式 #782
islet-recover
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
利用Electron构建了加载不同WEB系统页面的应用,为了方便打包后修改系统页面地址进行调试,需要添加一个配置文件,我的解决方案是:
1、在根目录创建config.yaml:
2、在packages.json中添加:
3、在electron-builder.yaml中添加:
4、在主进程
打包后可在Resources/config.yaml中修改prod地址,重启应用后即生效
Beta Was this translation helpful? Give feedback.
All reactions