首页 > IT职业 > IT职场 > react webpack 2.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/ ,如需转载,请注明出处,否则将追究法律责任。