react webpack 2.0 配置

nintyuui發表於2021-09-09
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部落格 ” ,連結:http://blog.itpub.net/3209/viewspace-2799716/,如需轉載,請註明出處,否則將追究法律責任。

相關文章