-
Notifications
You must be signed in to change notification settings - Fork 1
Fix electron target #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -10,7 +10,8 @@ function createWindow(): BrowserWindow { | |||
width: 800, | |||
height: 600, | |||
webPreferences: { | |||
preload: path.join(__dirname, 'preload.js') | |||
preload: path.join(__dirname, 'preload.js'), | |||
nodeIntegration: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"rootDir": "./", | ||
"outDir": "../main_dist" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟前端的 tsconfig 要分开下
有个问题可能要处理下:main 的代码变更后必须重新 app:start 才能生效? |
这个问题我先用编辑器统一改掉了,这个问题主要还是 yarn 不应该在 lock 文件里冗余 registry,我看这个 feature 可能要到 2.0 才能加:yarnpkg/yarn#5892 暂时的话:如果全局没配置自定义的 registry 那就没问题,如果配置了话,每次添加依赖时加一下命令行参数: |
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 5 5
=====================================
Hits 5 5 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.