Skip to content

Commit

Permalink
docs: update (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Sep 15, 2021
1 parent a0dee4f commit 28ab0aa
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,29 +83,7 @@ console.log(css); // {String}

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

If, for one reason or another, you need to extract CSS as a
plain string resource (i.e. not wrapped in a JS module) you
might want to check out the [extract-loader](https://github.com/peerigon/extract-loader).
It's useful when you, for instance, need to post process the CSS as a string.

**webpack.config.js**

```js
module.exports = {
module: {
rules: [
{
test: /\.css$/i,
use: [
"handlebars-loader", // handlebars loader expects raw resource string
"extract-loader",
"css-loader",
],
},
],
},
};
```
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).

## Options

Expand Down

0 comments on commit 28ab0aa

Please sign in to comment.