Skip to content

Commit 28ab0aa

Browse files
docs: update (#1374)
1 parent a0dee4f commit 28ab0aa

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

README.md

+1-23
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,7 @@ console.log(css); // {String}
8383

8484
If there are SourceMaps, they will also be included in the result string.
8585

86-
If, for one reason or another, you need to extract CSS as a
87-
plain string resource (i.e. not wrapped in a JS module) you
88-
might want to check out the [extract-loader](https://github.com/peerigon/extract-loader).
89-
It's useful when you, for instance, need to post process the CSS as a string.
90-
91-
**webpack.config.js**
92-
93-
```js
94-
module.exports = {
95-
module: {
96-
rules: [
97-
{
98-
test: /\.css$/i,
99-
use: [
100-
"handlebars-loader", // handlebars loader expects raw resource string
101-
"extract-loader",
102-
"css-loader",
103-
],
104-
},
105-
],
106-
},
107-
};
108-
```
86+
If, for one reason or another, you need to extract CSS as a file (i.e. do not store CSS in a JS module) you might want to check out the [recommend example](https://github.com/webpack-contrib/css-loader#recommend).
10987

11088
## Options
11189

0 commit comments

Comments
 (0)