Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Fix "Multiple Instances" example
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
daltones authored Feb 24, 2017
1 parent 5268d14 commit df74d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ There is also an `extract` function on the instance. You should use this if you
const ExtractTextPlugin = require('extract-text-webpack-plugin');

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

module.exports = {
module: {
Expand Down

0 comments on commit df74d40

Please sign in to comment.