Node 调试

  • ves debug 启动应用
  • 然后复制 chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9999/ws_proxy 到 chrome 地址栏,进入 Sources Tab,在指定的代码处打断点即可调试,更多请见 vscode 调试
ves debug

构建调试

  • ves build webpack 编译, 会进行文件 hash, minify
  • ves tsc TypeScript 编译
  • ves print 检查 Webpack 配置 是否生效或者正确
  • ves build webpack 编译
ves build // webpack 编译

ves build --server // webpack 编译后,启动静态 server 访问直接静态文件
  • ves tsc TypeScript 编译 Node 端(本地直接 ts-node 运行,发布模式需要编译成 js 文件)
ves tsc
  • ves print 检查 Webpack 配置 是否生效或者正确
ves print --help  // 查看命令使用

ves print   // 打印 webpack 配置

ves print --web 打印前端 webpack 配置

ves print -n module.rules[0].use[0] // 通过 lodash 获取配置指定节点

Author: sky
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source sky !
 Previous
Vue 前端开发 Vue 前端开发
支持特性开发模式 Webpack 内存编译,热更新,DLL构建,Cache 和多进程编译支持服务端渲染和前端渲染模式页面入口说明:app/web/page 为页面入口参考:https://github.com/easy-team/ves-admin/blob/master/app/web/page/...
2020-04-18 sky
Next 
框架介绍 框架介绍
ves 基于 Egg + Vue 的 TypeScript Node 应用基础框架GitHub:https://github.com/ves-team特性Node 端基于 Egg 开发,遵循 Egg 开发规范和 Egg 生态,支持 Egg 所有特性,比如插件机制,多进程机制使用 TypeScr...
2020-04-18 sky