webpack和webpack-dev-server版本兼容,亲测有效

时间:2025-02-27 16:12:15
{ "name": "react", "version": "1.0.0", "description": "", "main": "", "scripts": { "build": "webpack --config ", "start": "webpack-dev-server --config --color --progress" }, "author": "", "license": "ISC", "devDependencies": { "babel-core": "^6.26.3", "babel-loader": "^7.1.5", "babel-preset-env": "^1.7.0", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "webpack": "^3.10.0", "webpack-dev-server": "^2.9.7" }, "dependencies": { "react": "^16.5.2", "react-dom": "^16.5.2", "react-router-dom": "^4.3.1" } }