Skip to content

Commit

Permalink
fixed line length
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Jun 18, 2017
1 parent 6898aa4 commit 8b97ee5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions index.js
Expand Up @@ -332,11 +332,18 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
}.bind(this));
}.bind(this));
compilation.plugin("optimize-module-ids", function(modules){
modules.forEach(function(module){
modules.forEach(function (module) {
var data = toRemoveModules[module.identifier()];
if(data) {
if (data) {
var id = module.id;
var newModule = new NormalModule(module.request, module.userRequest, module.rawRequest, [], module.resource, module.parser);
var newModule = new NormalModule(
module.request,
module.userRequest,
module.rawRequest,
[],
module.resource,
module.parser
);
newModule.id = id;
newModule._source = new OriginalSource('// removed by extract-text-webpack-plugin');
data.chunks.forEach(function (chunk) {
Expand Down

0 comments on commit 8b97ee5

Please sign in to comment.