webpack_2 1.配置webpack.config.js 2.封装功能 3.查看npm的镜像源 $ npm config get registry $ npm config set registry https://registry.npmjs.org/ /**设置npm镜像源 */ 4.登录npm账号 $ npm addUser