react-static-plugin-sass

7.6.2 • Public • Published

react-static-plugin-sass

A React-Static plugin that adds loader and SSR support for sass

Installation

In an existing react-static site run:

$ yarn add react-static-plugin-sass

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

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

With Options

export default {
  plugins: [
    [
      "react-static-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)
      }
    ]
  ]
};

Readme

Keywords

none

Package Sidebar

Install

npm i react-static-plugin-sass

Weekly Downloads

77

Version

7.6.2

License

MIT

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • tannerlinsley
  • sleeplessbyte