美文网首页
react项目搭建初始化文件配置

react项目搭建初始化文件配置

作者: Angrybird233 | 来源:发表于2018-09-02 22:31 被阅读0次

    package.json文件配置

    {
      "name": "项目名称",
      "version": "1.0.0",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "dev": "webpack-dev-server --open --port 3000 --hot --host 127.0.0.1"
      },
      "keywords": [],
      "author": "",
      "license": "ISC",
      "devDependencies": {
        "babel-core": "^6.26.3",
        "babel-loader": "^7.1.4",
        "babel-plugin-transform-runtime": "^6.23.0",
        "babel-preset-env": "^1.7.0",
        "babel-preset-react": "^6.24.1",
        "babel-preset-stage-0": "^6.24.1",
        "html-webpack-plugin": "^3.0.6",
        "webpack": "^4.1.1",
        "webpack-cli": "^2.0.12",
        "webpack-dev-server": "^3.1.1"
      },
      "dependencies": {
        "react": "^16.4.2",
        "react-dom": "^16.4.2",
        "webpack": "^4.17.1",
        "webpack-dom": "^1.0.1"
      },
      "description": ""
    }
    
    

    相关文章

      网友评论

          本文标题:react项目搭建初始化文件配置

          本文链接:https://www.haomeiwen.com/subject/smjvwftx.html