extract-text-webpack-plugin
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -250,6 +250,11 @@ /* | ||
} | ||
var counterMap = {}; | ||
result.forEach(function(item) { | ||
var module = this.addModule.apply(this, item); | ||
var c = counterMap[item[0]]; | ||
var i = item.slice(); | ||
i[0] = item[0] + (c || ""); | ||
var module = this.addModule.apply(this, i); | ||
extractedChunk.addModule(module); | ||
module.addChunk(extractedChunk); | ||
counterMap[item[0]] = (c || 0) + 1; | ||
}, this); | ||
@@ -256,0 +261,0 @@ }; |
{ | ||
"name": "extract-text-webpack-plugin", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Extract text from bundle into a file.", |
@@ -43,3 +43,3 @@ # extract text plugin for webpack | ||
* `id` Unique ident for this plugin instance. (For advanded usage only) | ||
* `id` Unique ident for this plugin instance. (For advanded usage only, by default automatic generated) | ||
* `filename` the filename of the result file. May contain `[name]`, `[id]` and `[contenthash]`. | ||
@@ -50,5 +50,7 @@ * `[name]` the name of the chunk | ||
* `options` | ||
* `allChunks` extract all chunks (by default only initial chunks) | ||
* `allChunks` extract from all additional chunks too (by default it extracts only from the initial chunk(s)) | ||
* `disable` disables the plugin | ||
The `ExtractTextPlugin` generates an output file per entry, so you must use `[name]`, `[id]` or `[contenthash]` when using multiple entries. | ||
``` javascript | ||
@@ -55,0 +57,0 @@ ExtractTextPlugin.extract([notExtractLoader], loader, [options]) |
17649
400
70