Skip to content

Commit 4220ff9

Browse files
committed
docs: address feedback
1 parent d622278 commit 4220ff9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,12 @@ Then, add the loader to your `webpack` configuration. For example:
5050
import * as css from "./file.css";
5151
```
5252

53-
When using `css-loader`, importing a CSS file from JavaScript works because webpack processes the file through the loader pipeline and turns it into a JavaScript module.
53+
When using `css-loader`(https://github.com/webpack/css-loader), webpack processes the file through configured [loaders] (https://webpack.js.org/concepts/loaders/) and turns it into a JavaScript module.
5454

5555
The imported value is not a native `CSSStyleSheet`. Instead, it is a JavaScript module generated by `css-loader`. When CSS Modules are enabled, the import can contain exported identifiers (such as class name mappings) from the CSS file.
5656

5757
If you only want to apply the styles and do not need to access any exports, you can simply write:
5858

59-
```js
60-
import "./file.css";
61-
```
62-
6359
**webpack.config.js**
6460

6561
```js

0 commit comments

Comments
 (0)