Skip to content

Liuqing650/webpack-mobx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用 webpack 4 + babel 7 + react 16.13 搭建前端环境

部分依赖配置

{
  "devDependencies": {
    "@babel/core": "^7.11.1",
    "less-loader": "^6.2.0",
    "webpack": "^4.44.1",
    "webpack-cli": "^3.3.12",
    "webpack-dev-server": "^3.11.0"
  },
  "dependencies": {
    "antd": "^4.5.2",
    "core-js": "2",
    "mobx": "^5.15.5",
    "mobx-react": "^6.2.5",
    "mobx-react-router": "^4.1.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-loadable": "^5.5.0",
    "react-router-dom": "^5.2.0"
  }
}

运行

npm start

编译

npm run build