Provides drop-in support for SASS/SCSS stylesheets chained with postcss plugin support.
yarn add gatsby-plugin-postcss-sass
- Include the plugin in your
gatsby-config.js
file. - Write your stylesheets in SASS/SCSS (with your desired postcss featureset) and require/import them
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-postcss-sass`,
options: {
postCssPlugins: [
somePostCssPlugin()
],
precision: 8 // SASS default: 5
}
}
]