Skip to content

Allow passing options directly to Puppeteer's Page.setViewport() function #22

Open
@jerboa88

Description

@jerboa88

Allow options to be passed directly to Puppeteer's Page.setViewport() like so:

setDefaultOptions({
  puppeteer: {
    setViewport: {
      deviceScaleFactor: 1.5,
      isLandscape: true,
      isMobile: true,
      // ...
    },
    // ...
  },
  // ...
})

Allowing arbitrary options to be passed will give user's more flexibility in case they need to customize the behavior of Page.setViewport() for their use case.

Options important for correct behavior of the plugin like width and height should overwrite user-provided options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ featureTYPE: An enhancement or a new feature

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions