mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): add an include statement for puppeteer-core (#3213)
Fix #3204
This commit is contained in:
parent
c5511ecb81
commit
c967aebc84
@ -339,6 +339,12 @@ However, you should use `puppeteer-core` if:
|
||||
- you're building another end-user product or library atop of DevTools protocol. For example, one might build PDF generator using `puppeteer-core` and write a custom `install.js` script that downloads [`headless_shell`](https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md) instead of Chromium to save disk space.
|
||||
- you're bundling Puppeteer to use in Chrome Extension / browser with the DevTools protocol where downloading an additional Chromium binary is unnecessary.
|
||||
|
||||
When using `puppeteer-core`, remember to change the *include* line:
|
||||
|
||||
```js
|
||||
const puppeteer = require('puppeteer-core');
|
||||
```
|
||||
|
||||
|
||||
### Environment Variables
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user