start-server-webpack-plugin
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -72,3 +72,10 @@ 'use strict'; | ||
value: function apply(compiler) { | ||
compiler.plugin("after-emit", this.afterEmit); | ||
// Use the Webpack 4 Hooks API when possible. | ||
if (compiler.hooks) { | ||
var plugin = { name: "StartServerPlugin" }; | ||
compiler.hooks.afterEmit.tapAsync(plugin, this.afterEmit); | ||
} else { | ||
compiler.plugin("after-emit", this.afterEmit); | ||
} | ||
} | ||
@@ -75,0 +82,0 @@ }, { |
{ | ||
"name": "start-server-webpack-plugin", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Automatically start your server once Webpack's build completes.", | ||
@@ -5,0 +5,0 @@ "main": "dist/StartServerPlugin.js", |
8013
107