1.2.0 • Published 12 months ago

react-static-pro-plugin-sass v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

react-static-pro-plugin-sass

A React-Staticplugin that adds loader and SSR support for sass

Installation

In an existing react-static site run:

$ yarn add react-static-pro-plugin-sass

Then add the plugin to your static.config.js:

export default {
  plugins: ["react-static-pro-plugin-sass"]
};

With Options

export default {
  plugins: [
    [
      "react-static-pro-plugin-sass",
      {
        includePaths: ["..."] // always includes `src/`
        cssLoaderOptions: {}, // options for the css-loader, like modules
        // other options for the sass-loader (https://github.com/sass/dart-sass#javascript-api)
      }
    ]
  ]
};