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
+12-4
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ $ npm start & open http://localhost:8080
14
14
## npm modules required for CSS modules
15
15
16
16
In this project's `package.json` file you find a lot of npm modules for this demo application. Since not all of them are required for the actual CSS modules features,
17
-
we've created the following list to describe their purposes.
17
+
we've created the following list to describe their purposes.
18
18
19
19
**Required modules**
20
20
@@ -31,22 +31,30 @@ To make CSS modules work with Webpack you only have to include the modules menti
The following optional css-loader query parameters (.e.g, `loader: 'css-loader?' + query`) may prove useful for using CSS modules:
42
+
43
+
|Query|Usage|Description|
44
+
|-----|-----|-----------|
45
+
|`camelCase`|`css-loader?camelCase`|Camel cases the exported class name keys. Helpful to maintain dashes in css and camel casing in javascript.|
46
+
39
47
**Optional modules**
40
48
41
-
The following modules control the *actual CSS processing*. They are *not* CSS modules specific and can be used with both "regular" CSS and CSS modules:
49
+
The following modules control the *actual CSS processing*. They are *not* CSS modules specific and can be used with both "regular" CSS and CSS modules:
42
50
43
51
|Module|Description|
44
52
|------|------------|
45
53
|[postcss-loader](https://github.com/postcss/postcss-loader)|Allows execution of various CSS post processor in Webpack. Required for `autoprefixer-core` and `postcss-color-rebeccapurple`|
46
54
|[autoprefixer-core](https://github.com/ai/autoprefixer-core)|Add vendor-prefixes to your css code (according to the GitHub page it is deprecated and should be replaced by [autoprefixer](https://github.com/postcss/autoprefixer)|
47
55
|[postcss-color-rebeccapurple](https://github.com/postcss/postcss-color-rebeccapurple)|Another CSS post processor. Only needed to support `rebeccapurple` color in CSS|
48
56
|[extract-text-webpack-plugin](https://github.com/webpack/extract-text-webpack-plugin)|Writes the CSS code processed by Webpack into an own CSS-file and not into the generated bundle JavaScript file.|
49
-
57
+
50
58
**Unrelated modules**
51
59
52
60
This modules are only needed for the demo application:
0 commit comments