ipatate / gatsby-plugin-snipcart-advanced

Gatsby JS plugin for Snipcart V3 with advanced settings
MIT License
15 stars 19 forks source link

[info] Load snipcart lib only to specific pages #11

Open andrea689 opened 3 years ago

andrea689 commented 3 years ago

Hi, is there a way to use this lib only to specific pages? I would like to lighten the pages where I do not use snipcart, and I have noticed that this is required by all my pages. Thanks!

Calandri commented 3 years ago

Me too

Calandri commented 3 years ago

Any update on this?

ipatate commented 3 years ago

hello, how do you see this feature ? an array of authorized path ? like that :

shopPages: ['foo', 'bar']

if empty, all routes contains the snipcart lib.