You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,10 @@ Seamless mapping of class names to CSS modules inside of React components.
7
7
8
8
-[What's the Problem?](#whats-the-problem)
9
9
-[Usage](#usage)
10
-
-[webpack](#webpack)
11
-
-[Browserify](#browserify)
12
-
-[react-css-modules](#react-css-modules)
10
+
-[Module Bundler](#module-bundler)
11
+
- [webpack](#webpack)
12
+
- [Browserify](#browserify)
13
+
-[Decorator](#decorator)
13
14
-[Options](#options)
14
15
-[`allowMultiple`](#allowmultiple)
15
16
-[`keepOriginal`](#keeporiginal)
@@ -86,9 +87,11 @@ Refer to the [react-css-modules-examples](https://github.com/gajus/react-css-mod
86
87
Setup consists of:
87
88
88
89
* Setting up a module bundler to load your [ICSS](https://github.com/css-modules/icss).
89
-
* Decorating your component using [`react-css-modules`](#react-css-modules).
90
+
*[Decorating](#decorator) your component using `react-css-modules`.
90
91
91
-
### webpack
92
+
### Module Bundler
93
+
94
+
#### webpack
92
95
93
96
* Install [`style-loader`](https://www.npmjs.com/package/style-loader) and [`css-loader`](https://www.npmjs.com/package/css-loader).
94
97
* You will also need to use [`extract-text-webpack-plugin`](https://www.npmjs.com/package/extract-text-webpack-plugin) to aggregate the CSS into a single file.
@@ -111,11 +114,11 @@ new ExtractTextPlugin('app.css', {
111
114
112
115
Refer to [webpack-demo](https://github.com/css-modules/webpack-demo) or [react-css-modules-examples](https://github.com/gajus/react-css-modules-examples) for a complete setup.
113
116
114
-
### Browserify
117
+
####Browserify
115
118
116
119
Refer to [`css-modulesify`](https://github.com/css-modules/css-modulesify).
0 commit comments