Skip to content

Commit

Permalink
docs(README): add extract-loader example (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
mareksuscak authored and michael-ciniawsky committed Apr 26, 2017
1 parent b90d8dd commit 760eefa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ 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
{
   test: /\.css$/,
   use: [
'handlebars-loader', // handlebars loader expects raw resource string
     'extract-loader',
'css-loader'
   ]
}
```

<h2 align="center">Options</h2>

|Name|Type|Default|Description|
Expand Down

0 comments on commit 760eefa

Please sign in to comment.