Skip to content

Commit b13b216

Browse files
committed
docs: update readme
1 parent d403863 commit b13b216

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 3.10.0 (2024-04-18)
44

55
- feat: add support the [CSS Modules](https://github.com/css-modules/css-modules) for styles imported in JS using the [css-loader modules](https://github.com/webpack-contrib/css-loader#modules) option.\
6+
Required: `css-loader` >= `7.0.0`\
67
The CSS _module rule_ in the webpack config:
78
```js
89
{

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ See [boilerplate](https://github.com/webdiscus/webpack-html-scss-boilerplate)
535535
- [How to config `splitChunks`](#recipe-split-chunks)
536536
- [How to keep package name for **split chunks** from **node_modules**](#recipe-split-chunks-keep-module-name)
537537
- [How to split CSS files](#recipe-split-css)
538-
- [How to split CSS files](#recipe-split-css)
539538
2. [Problems & Solutions](#solutions)
540539
- [Automatic resolving of file extensions](#solutions-resolve-extensions)
541540
- [How to use `@import url()` in CSS](#solutions-import-url-in-css)
@@ -5259,6 +5258,8 @@ See the [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API
52595258
52605259
## How to import CSS class names in JS
52615260
5261+
**Required:** `css-loader >= 7.0.0`
5262+
52625263
To import style `class names` in JS, add in the webpack config the [modules](https://github.com/webpack-contrib/css-loader#modules) option into `css-loader`:
52635264
```js
52645265
{
@@ -5284,7 +5285,7 @@ For example there is _./style.css_ file:
52845285
}
52855286
```
52865287
5287-
In _./main.js_ file you can use class names with `camelCase`:
5288+
In _./main.js_ file you can use the class name with `camelCase`:
52885289
```js
52895290
import styles from './style.css';
52905291

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)