7.6.2 • Published 3 years ago

react-static-plugin-css-modules v7.6.2

Weekly downloads
54
License
MIT
Repository
github
Last release
3 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.6.2

3 years ago

7.6.1

3 years ago

7.2.2

5 years ago

7.2.0

5 years ago

7.1.0

5 years ago

7.0.10

5 years ago

7.0.8

5 years ago

7.0.0

5 years ago

7.0.0-beta.0

5 years ago

6.3.0

5 years ago

6.1.1

5 years ago

6.1.0

5 years ago

6.0.12

5 years ago

6.0.8

5 years ago

6.0.5

5 years ago

6.0.3

5 years ago

6.0.1

5 years ago