react-rewire-css-modules

1.1.11 • Public • Published

react-rewire-css-module

对 文件扩展为 *.module.css 添加 cssModules 模式

Usage

  • 默认使用:
import { compose } from "react-rewired-scripts";
import rewireCssModules from "react-rewire-css-modules";
 
export default compose(rewireCssModules);
  • 可以配置选项:
import { compose } from "react-rewired-scripts";
 
export default compose(
    rewireCssModules.withOptions({
        // default options
        localIdentName: "[local]___[hash:base64:5]",
        camelCase: true
    })
);

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-rewire-css-modules

    Weekly Downloads

    1

    Version

    1.1.11

    License

    ISC

    Last publish

    Collaborators

    • likun7981