mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Docs: add electron to bundlers section
If you're using asar, you'll also need to configure asarUnpack.
This commit is contained in:
parent
0499f59e71
commit
8cd832656b
@ -231,6 +231,21 @@ custom:
|
|||||||
- npm install --os=linux --cpu=x64 sharp
|
- 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/**/*"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## TypeScript
|
## TypeScript
|
||||||
|
|
||||||
TypeScript definitions are published as part of
|
TypeScript definitions are published as part of
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user