Skip to content

Files

Latest commit

95b37c9 · Sep 7, 2017

History

History
This branch is 19102 commits behind gatsbyjs/gatsby:master.

gatsby-plugin-postcss-sass

gatsby-plugin-postcss-sass

Provides drop-in support for SASS/SCSS stylesheets chained with postcss plugin support.

Install

yarn add gatsby-plugin-postcss-sass

How to use

  1. Include the plugin in your gatsby-config.js file.
  2. 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
    }
  }
]