在生成多个灯塔报告时,我能否在不给出目录路径的情况下获得灯塔报告的专有名称?

时间:2019-07-26 19:15:44

标签: javascript node.js command-line lighthouse

我在批处理文件中使用以下代码来生成多个网页的灯塔报告:

@For /F "UseBackQ Delims=" %%A In ("./url.txt"
) Do @LightHouse "%%A"  --disable-storage-reset --emulated-form-factor=desktop   --throttling-method=provided  --view --only-categories=performance,accessibility --output=json --output=html

文件将通过以下方式存储:

https://miro.medium.com/max/730/1*5cHRuTCcoDcrYbeE0sKZyg.png

url.txt:

https://miro.medium.com/max/875/1*aK5IeNvG9i4uZOCxgjhhvg.png

那么我可以通过对代码进行任何修改来获取具有专有名称的文件名,就像url的最后一部分一样吗?

0 个答案:

没有答案