mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57:03 +02:00
docs(ideal-image): Add warning for pnpm 10+ and sharp
install script (#11180)
This commit is contained in:
parent
f3e3f54e5c
commit
c419d7ec88
2 changed files with 26 additions and 0 deletions
|
@ -45,6 +45,20 @@ This plugin registers a [Webpack loader](https://webpack.js.org/loaders/) that c
|
|||
|
||||
:::
|
||||
|
||||
:::warning For pnpm users
|
||||
|
||||
Starting with [pnpm 10](https://github.com/pnpm/pnpm/releases/tag/v10.0.0), running `pnpm install` won't run dependency install scripts by default. You'll need additional pnpm configuration ([issue](https://github.com/lovell/sharp/issues/4343)) for our `sharp` image resizing dependency to install correctly, such as:
|
||||
|
||||
```json title="package.json"
|
||||
{
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": ["fsevents"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
## Configuration {#configuration}
|
||||
|
||||
Accepted fields:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue