Skip to content

Commit df74d40

Browse files
authored
Fix "Multiple Instances" example
Both source types `.css` and `.less` will result in pure CSS content after `css-loader`. So it's expected that the filename for extracted files will always be `.css`.
1 parent 5268d14 commit df74d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ There is also an `extract` function on the instance. You should use this if you
102102
const ExtractTextPlugin = require('extract-text-webpack-plugin');
103103

104104
// Create multiple instances
105-
const extractCSS = new ExtractTextPlugin('stylesheets/[name].css');
106-
const extractLESS = new ExtractTextPlugin('stylesheets/[name].less');
105+
const extractCSS = new ExtractTextPlugin('stylesheets/[name]-one.css');
106+
const extractLESS = new ExtractTextPlugin('stylesheets/[name]-two.css');
107107

108108
module.exports = {
109109
module: {

0 commit comments

Comments
 (0)