Skip to content

Commit

Permalink
feat(devtools): support debug multiple project at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
shenchaoran authored and zoomchan-cxj committed Mar 29, 2022
1 parent f051421 commit 8213ff6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
11 changes: 5 additions & 6 deletions docs/guide/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ Hippy中运行的 JS 代码可以来源于本地文件(local file),或者远
// 调试服务端口
port: 38989,
},
// 默认为 false,设为 true 调试服务支持多个工程同时调试,彼此之间不会干扰
multiple: false,
// 默认 hot, liveReload 都为 true,如果只想使用 live-reload 功能,请将 hot 设为 false,liveReload 设为 true
hot: true,
liveReload: true,
client: {
overlay: false,
},
Expand Down Expand Up @@ -180,9 +185,6 @@ Hippy 实现了节点和属性从前端到终端的映射,可以在 Chrome Dev
// 默认 hot, liveReload 都为 true,如果只想使用 live-reload 功能,请将 hot 设为 false,liveReload 设为 true
hot: true,
liveReload: true,
devMiddleware: {
writeToDisk: true,
},
client: {
// 暂不支持错误提示蒙层
overlay: false,
Expand Down Expand Up @@ -252,9 +254,6 @@ Hippy 实现了节点和属性从前端到终端的映射,可以在 Chrome Dev
// 默认 hot, liveReload 都为 true,如果只想使用 live-reload 功能,请将 hot 设为 false,liveReload 设为 true
hot: true,
liveReload: true,
devMiddleware: {
writeToDisk: true,
},
client: {
// 暂不支持错误提示蒙层
overlay: false,
Expand Down
2 changes: 1 addition & 1 deletion examples/hippy-react-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@babel/polyfill": "^7.12.0",
"@babel/preset-env": "^7.12.0",
"@babel/preset-react": "^7.9.4",
"@hippy/debug-server-next": "^0.2.21",
"@hippy/debug-server-next": "^0.2.26",
"@hippy/hippy-dynamic-import-plugin": "^2.0.0",
"@hippy/hippy-hmr-plugin": "^0.0.2",
"@hippy/hippy-react-refresh-webpack-plugin": "^0.5.5",
Expand Down
5 changes: 2 additions & 3 deletions examples/hippy-react-demo/scripts/hippy-webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ module.exports = {
host: '127.0.0.1',
port: 38989,
},
// support debug multiple project with only one debug server, by default is set false.
multiple: false,
// by default hot and liveReload option are true, you could set only liveReload to true
// to use live reload
hot: true,
liveReload: true,
devMiddleware: {
writeToDisk: true,
},
client: {
overlay: false,
},
Expand Down
2 changes: 1 addition & 1 deletion examples/hippy-vue-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/polyfill": "^7.12.0",
"@babel/preset-env": "^7.12.0",
"@hippy/debug-server-next": "^0.2.21",
"@hippy/debug-server-next": "^0.2.26",
"@hippy/hippy-dynamic-import-plugin": "^2.0.0",
"@hippy/hippy-hmr-plugin": "^0.0.2",
"@hippy/vue-css-loader": "^2.0.1",
Expand Down
5 changes: 2 additions & 3 deletions examples/hippy-vue-demo/scripts/hippy-webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ module.exports = {
host: '127.0.0.1',
port: 38989,
},
// support debug multiple project with only one debug server, by default is set false.
multiple: false,
// by default hot and liveReload option are true, you could set only liveReload to true
// to use live reload
hot: true,
liveReload: true,
devMiddleware: {
writeToDisk: true,
},
client: {
overlay: false,
},
Expand Down

0 comments on commit 8213ff6

Please sign in to comment.