File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,23 @@ console.log(css); // {String}
7373
7474If there are SourceMaps, they will also be included in the result string.
7575
76+ If, for one reason or another, you need to extract CSS as a
77+ plain string resource (i.e. not wrapped in a JS module) you
78+ might want to check out the [ extract-loader] ( https://github.com/peerigon/extract-loader ) .
79+ It's useful when you, for instance, need to post process the CSS as a string.
80+
81+ ** webpack.config.js**
82+ ``` js
83+ {
84+ test: / \. css$ / ,
85+ use: [
86+ ' handlebars-loader' , // handlebars loader expects raw resource string
87+ ' extract-loader' ,
88+ ' css-loader'
89+ ]
90+ }
91+ ```
92+
7693<h2 align =" center " >Options</h2 >
7794
7895| Name| Type| Default| Description|
You can’t perform that action at this time.
0 commit comments