I'm building an ecommerce platform using GatsbyJS and Snipcart. It works well, but I want to override the default theme provided by Snipcart, and when I want to change the main default CSS through gatsby-config.js
for some reason, it does not work.
Anyone has a solution? Thanks.
This code below makes the snipcart to stop functioning, exactly when I add the styles option:
{
resolve: 'gatsby-plugin-snipcartv3',
options: {
apiKey: 'API_IS_HIDDEN_FOR_A_REASON',
autopop: true,
styles: '.src/components/layout.css'
}
},
The question is how to make Snipcart version 3 to accept different styles provided by me when used with GatsbyJS
? I tried their documentation, but there was not much, also looked on github
as well.