Webpack dev-server 2 task for Start. You might also need start-webpack.
npm install --save-dev start-webpack-dev-server
# or
yarn add --dev start-webpack-dev-server
import Start from 'start';
import reporter from 'start-pretty-reporter';
import webpackDevServer from 'start-webpack-dev-server';
const start = Start(reporter());
export const dev = () => start(
webpackDevServer(require('conf/webpack.dev'))
);
See documentation for details.
webpackDevServer(config, devServerOptions, serverOptions)
config
– webpack configdevServerOptions
– webpack dev-server options,{ stats: { colors: true } }
by defaultserverOptions
–{ port: 3000, host: 'localhost' }
by default