extract-text-webpack-plugin
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -54,3 +54,3 @@ /* | ||
async.forEach(chunk.modules, function(module, callback) { | ||
var meta = module.meta[__dirname]; | ||
var meta = module.meta && module.meta[__dirname]; | ||
if(meta) { | ||
@@ -90,2 +90,2 @@ var wasExtracted = typeof meta.text === "string"; | ||
}.bind(this)); | ||
}; | ||
}; |
{ | ||
"name": "extract-text-webpack-plugin", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Extract text from bundle into a file.", |
@@ -11,2 +11,3 @@ # extract text plugin for webpack | ||
{ test: /\.css$/, loaders: [ | ||
ExtractTextPlugin.loader({remove:true, extract: false}), | ||
"style-loader", | ||
@@ -30,10 +31,13 @@ ExtractTextPlugin.loader(), | ||
* `id` TODO | ||
* `id` Unique ident for this plugin instance. (For advanded usage only) | ||
* `filename` the filename of the result file. May contain `[name]`. | ||
* `options` TODO | ||
* `options` | ||
* `allChunks` extract all chunks (by default only initial chunks) | ||
There is also a `loader` function on the instance. You should use this if you have more than one ExtractTextPlugin. | ||
**NOTE: Currently you MUST set `allChunks` to `true`.** | ||
## License | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
7929
177
41