SASS resources (e.g. variables, mixins etc.) plugin for Gatsby
npm install --save node-sass gatsby-plugin-sass gatsby-plugin-sass-resources
- Include the plugin in your
gatsby-config.js
file. - Write your resources stylesheets in SASS/SCSS and include it in the resources list in the options as shown below.
// in gatsby-config.js
plugins: [{
resolve: `gatsby-plugin-sass-resources`,
options: {
resources: ['./path/to/resources.scss']
}
}]
Built using sass-resources-loader