修改 package.json文件 增加 --host ip 重新编译即可
{
"name": "m5",
"version": "1.0.0",
"description": "n",
"author": "n",
"private": true,
"scripts": {
"dev" : "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.1.12 " ,
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"test": "npm run unit",
"build": "node build/build.js"
},
Logo

前往低代码交流专区

更多推荐