mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Docs: separate electron installation into builder and forge sections
This commit is contained in:
parent
06b08bf10f
commit
eba82a8ba5
@ -236,8 +236,10 @@ custom:
|
|||||||
|
|
||||||
### electron
|
### electron
|
||||||
|
|
||||||
|
#### electron-builder
|
||||||
|
|
||||||
Ensure `sharp` is unpacked from the ASAR archive file using the
|
Ensure `sharp` is unpacked from the ASAR archive file using the
|
||||||
[asarUnpack](https://www.electron.build/configuration/configuration.html)
|
[asarUnpack](https://www.electron.build/app-builder-lib.interface.platformspecificbuildoptions#asarunpack)
|
||||||
option.
|
option.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@ -252,6 +254,22 @@ option.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### electron-forge
|
||||||
|
|
||||||
|
Ensure `sharp` is unpacked from the ASAR archive file using the
|
||||||
|
[unpack](https://js.electronforge.io/interfaces/_electron_forge_maker_squirrel.InternalOptions.Options.html#asar)
|
||||||
|
option.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"packagerConfig": {
|
||||||
|
"asar": {
|
||||||
|
"unpack": "**/node_modules/{sharp,@img}/**/*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### vite
|
### vite
|
||||||
|
|
||||||
Ensure `sharp` is excluded from bundling via the
|
Ensure `sharp` is excluded from bundling via the
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user