@nodefony/http-bundle
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0-beta.2
{ | ||
"name": "@nodefony/http-bundle", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0-beta.2", | ||
"description": "Nodefony Framework Bundle HTTP ", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
@@ -24,10 +24,11 @@ const Sockjs = require('sockjs'); | ||
this.compiler = compiler; | ||
if (this.compiler.plugin) { | ||
this.compiler.plugin("compile", () => { | ||
if (this.compiler.hooks) { | ||
this.compiler.hooks.compile.tap('webpack-dev-server', () => { | ||
this.sockWrite("invalid"); | ||
}); | ||
this.compiler.plugin("invalid", () => { | ||
this.compiler.hooks.invalid.tap('webpack-dev-server', () => { | ||
this.sockWrite("invalid"); | ||
}); | ||
this.compiler.plugin("done", (stats) => { | ||
this.compiler.hooks.done.tap('webpack-dev-server', (stats) => { | ||
this.stats = stats.toJson(this.clientStats); | ||
@@ -37,9 +38,9 @@ this.sendStats(this.stats); | ||
} else { | ||
this.compiler.hooks.compile.tap('webpack-dev-server', () => { | ||
this.compiler.plugin("compile", () => { | ||
this.sockWrite("invalid"); | ||
}); | ||
this.compiler.hooks.invalid.tap('webpack-dev-server', () => { | ||
this.compiler.plugin("invalid", () => { | ||
this.sockWrite("invalid"); | ||
}); | ||
this.compiler.hooks.done.tap('webpack-dev-server', (stats) => { | ||
this.compiler.plugin("done", (stats) => { | ||
this.stats = stats.toJson(this.clientStats); | ||
@@ -46,0 +47,0 @@ this.sendStats(this.stats); |