ITPub博客

首页 > IT职业 > IT职场 > react webpack 2.0 配置

react webpack 2.0 配置

IT职场 作者:nintyuui 时间:2021-09-09 09:07:19 0 删除 编辑
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"
  }
}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3209/viewspace-2799716/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    87
  • 访问量
    15055