Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用--profilemakeshake 生成一个report.html文件,可以从中运行查询并生成构建规则的依赖关系图。是否有可能以 graphviz 格式获取该图形而不需要浏览器来显示它?
--profile
report.html
如果你运行,--profile=report.json那么你会得到一个 JSON 文件,其中包含进入分析的所有数据。由此,生成 GraphViz 输出应该很容易。如果有需求,可以添加 GraphViz 生成模式--profile。
--profile=report.json
但是,过去的经验表明,所有依赖项的 GraphViz 文件太大而无法实际查看。为了使图表视图实用,您需要对图表进行分组/过滤,或者使用更好的图表查看器。