7.2.3-alpha • Published 4 years ago

@kibalabs/react-static-plugin-css-modules v7.2.3-alpha

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-static-plugin-css-modules

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

Installation

In an existing react-static site run:

$ yarn add react-static-plugin-css-modules

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

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

With Options

export default {
  plugins: [
    [
      "react-static-plugin-css-modules",
      {
         modules: true, // set true by default
         localIdentName: '[path][name]__[local]--[hash:base64:5]', // just an example
         // any other options you wish from css-loader
         // want to use sass? you can track it down in your webpack build and add the loader
         // otherwise open an issue tagging @ScriptedAlchemy. He will enhance the options if required 
       }
    ]
  ]
};
7.2.3-alpha

4 years ago

7.3.0

4 years ago

7.2.3

4 years ago