继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

react webpack 2.0 配置

qaytix
关注TA
已关注
手记 104
粉丝 37
获赞 165
0.初始化项目

npm init

1.默认呢

{
  "name": "demo_1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}
2.webpack2.0安装的命令

sudo npm install webpack@2.2.1 --save-dev

3.命令执行的结果
{
  "name": "demo_1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "webpack": "^2.2.1"
  }
}
打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP