0.0.74 • Published 3 years ago
@outsmartly/gatsby-plugin-outsmartly v0.0.74
gatsby-plugin-outsmartly
The Outsmartly Gatsby plugin automatically integrates the Outsmartly SDK. It hooks into the compilation phase, client-side preloading, handles boilerplate code, and more.
Install
npm install --save @outsmartly/gatsby-plugin-outsmartly
Next, add '@outsmartly/gatsby-plugin-outsmartly'
to the plugins
array inside
your gatsby-config.js
:
gatsby-config.js
// Your file probably looks much more complex than this
module.exports = {
plugins: ['@outsmartly/gatsby-plugin-outsmartly'],
// etc...
};
Now we can initialize our project with Outsmartly:
npx outsmartly init
After following the prompts, you should now have a new outsmartly.config.js
where you can add route Overrides and Interceptors.