wepbpack devServer 4.0.0 code example
Example 1: npm webpackdev server
npm install webpack-dev-server --save-dev
Example 2: npm dev server
$ npm install dev-server -g
npm install webpack-dev-server --save-dev
$ npm install dev-server -g