dingweideMacBook-Pro:05-01 xisha$ webpack
The CLI moved into a separate package: webpack-cli.
Please install 'webpack-cli' in addition to webpack itself to use the CLI.
-> When using npm: npm install webpack-cli -D
-> When using yarn: yarn add webpack-cli -D
轻松入门 React 开发,React Router 4 与 Webpack 2 完美升级项目
了解课程