Skip to content

Commit e93baae

Browse files
committed
add warning to correct template instead of wrong template
1 parent 42e8078 commit e93baae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

templates/typescript-+-webpack-template.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ There have been reports that using the Git Bash command line on Windows specific
1515
{% endhint %}
1616

1717
Once you've initialized the template, you'll need to run `npm start` in the generated directory. See the [Webpack Plugin](../config/plugins/webpack.md) documentation for Electron Forge-specific configuration options.
18-
19-
Note: Executing `npm start` immediately after creating the app will reliably produce two errors due to [an issue with electron](https://github.com/electron/electron/issues/41614)that is currently marked as "wontfix." The appropriate solution for you depends on your specific app, but a temporary fix can be performed with two changes to `main.js`. First, comment out line 23 (`mainWindow.webContents.openDevTools()`), second, add `app.disableHardwareAcceleration()` at the end of the file.

templates/webpack-template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ npx create-electron-app@latest my-new-app --template=webpack
1111
```
1212

1313
Once you've initialized the template, you'll need to run `npm start` in the generated directory. See the [Webpack Plugin](../config/plugins/webpack.md) documentation for Electron Forge-specific configuration options.
14+
15+
{% hint style="warning" %}
16+
Executing `npm start` immediately after creating the app will reliably produce two errors due to [an issue with electron](https://github.com/electron/electron/issues/41614)that is currently marked as "wontfix." The appropriate solution for you depends on your specific app, but a temporary fix can be performed with two changes to `main.js`. First, comment out line 23 (`mainWindow.webContents.openDevTools()`), second, add `app.disableHardwareAcceleration()` at the end of the file.
17+
{% endhint %}

0 commit comments

Comments
 (0)