diff --git a/README.md b/README.md index 43e5ee0e..6033723a 100644 --- a/README.md +++ b/README.md @@ -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' +   ] +} +``` +

Options

|Name|Type|Default|Description|