使用 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