diff --git a/packages/http/src/server.js b/packages/http/src/server.js index d81e7c3..3a682ef 100644 --- a/packages/http/src/server.js +++ b/packages/http/src/server.js @@ -29,7 +29,7 @@ export default { // eslint-disable-next-line no-param-reassign configs.http = R(join(__dirname, 'build/.neutrinorc.js')); } - else if (-1 !== onlyBuilds.indexOf('http')) { + else if (0 === onlyBuilds.length || -1 !== onlyBuilds.indexOf('http')) { const binary = `$(npm --prefix ${root} bin)/webpack-dev-server`; const config = `${__dirname}/build/webpack.config.js`; const options = {