UNPKG

gatsby-plugin-autopilot

Version:

A plugin to add Autopilot tracking code to your Gatsby site.

14 lines (12 loc) 320 B
exports.onPreInit = ({ reporter }, options) => { if (!options.apiUrl) { reporter.warn( `The Autopilot plugin requires a an api url. Did you mean to add it?` ); } if (!options.trackingId) { reporter.warn( `The Autopilot plugin requires a tracking ID. Did you mean to add it?` ); } };