File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,29 @@ Creates an extracting loader from an existing loader.
64
64
65
65
There is also an ` extract ` function on the instance. You should use this if you have more than one ExtractTextPlugin.
66
66
67
+ ``` javascript
68
+ let ExtractTextPlugin = require (' extract-text-webpack-plugin' );
69
+
70
+ // multiple extract instances
71
+ let extractCSS = new ExtractTextPlugin (' stylesheets/[name].css' );
72
+ let extractLESS = new ExtractTextPlugin (' stylesheets/[name].less' );
73
+
74
+ module .exports = {
75
+ ...
76
+ module: {
77
+ loaders: [
78
+ {test: / \. scss$ / i , loader: extractCSS .extract ([' css' ,' sass' ])},
79
+ {test: / \. less$ / i , loader: extractLESS .extract ([' css' ,' less' ])},
80
+ ...
81
+ ]
82
+ },
83
+ plugins: [
84
+ extractCSS,
85
+ extractLESS
86
+ ]
87
+ };
88
+ ```
89
+
67
90
## License
68
91
69
92
MIT (http://www.opensource.org/licenses/mit-license.php )
You can’t perform that action at this time.
0 commit comments