start-server-webpack-plugin
Advanced tools
Comparing version 3.0.0-rc1 to 3.0.0-rc2
@@ -32,5 +32,8 @@ 'use strict'; | ||
once: false, | ||
args: [], | ||
// Only listen on keyboard in development, so the server doesn't hang forever | ||
restartable: process.env.NODE_ENV === 'development' | ||
}, options); | ||
if (!Array.isArray(this.options.args)) throw new Error('options.args has to be an array of strings'); | ||
this.afterEmit = this.afterEmit.bind(this); | ||
@@ -128,4 +131,3 @@ this.apply = this.apply.bind(this); | ||
if (worker) return; | ||
console.warn(`sswp> running \`node ${[...execArgv, scriptFile, '--', ...(options.args || [])].join(' ')}\``); | ||
console.warn(`sswp> running \`node ${[...execArgv, scriptFile, '--', ...options.args].join(' ')}\``); | ||
this.worker = _child_process2.default.fork(scriptFile, options.args, { execArgv }); | ||
@@ -132,0 +134,0 @@ this.worker.once('exit', this._handleChildExit); |
{ | ||
"name": "start-server-webpack-plugin", | ||
"version": "3.0.0-rc1", | ||
"version": "3.0.0-rc2", | ||
"description": "Automatically start your server once Webpack's build completes.", | ||
@@ -5,0 +5,0 @@ "main": "dist/StartServerPlugin.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15728
222
1