config下面的host不要动,只改动package.jsong下面的host不要动,只改动package.json下dev即可
"scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0", "start": "npm run dev", "build": "node build/build.js" },
完美解决。
"scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0", "start": "npm run dev", "build": "node build/build.js" },
完美解决。