npm init
npm install webpack --save-dev -g //必须加上 -g 全局安装
npm install --save-dev webpack-cli -g
webpack hello.js -o hello.bundle.js --mode development //实例:打包hello.js文件
npm init
npm install webpack --save-dev -g //必须加上 -g 全局安装
npm install --save-dev webpack-cli -g
webpack hello.js -o hello.bundle.js --mode development //实例:打包hello.js文件