lexaurin / react-static-plugin-sass

A React-Static plugin that adds SSR support for sass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/`
        // other options for the sass-loader
      }
    ]
  ]
};

About

A React-Static plugin that adds SSR support for sass


Languages

Language:JavaScript 100.0%