-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: add electron to bundlers section
If you're using asar, you'll also need to configure asarUnpack.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,21 @@ custom: | |
- npm install --os=linux --cpu=x64 sharp | ||
``` | ||
### electron | ||
Ensure sharp is unpacked from the ASAR archive file using the | ||
[asarUnpack](https://www.electron.build/configuration/configuration.html) | ||
option. | ||
```json | ||
{ | ||
"build": { | ||
"asar": true, | ||
"asarUnpack": ["**/node_modules/sharp/**/*"] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lovell
Author
Owner
|
||
} | ||
} | ||
``` | ||
|
||
## TypeScript | ||
|
||
TypeScript definitions are published as part of | ||
|
Oops, something went wrong.
In my case it's throwing runtime error until I add additional line to asarUnpack:
"**/node_modules/@img/**/*"
so, in my case it's looks like: