mermaid-cli
mermaid-cli copied to clipboard
Is there a way to download chromium once?
I'm hoping it's possible to get the mermaid cli tool to not download Chromium r800071 every time I run npx -p @mermaid-js/mermaid-cli mmdc .
I'm scratching my head a bit because it feels like it's something that should be possible, but I don't really know how.
It would save me like 20-30 seconds per time I run the command if it just kept a copy of it around somewhere.
I'm on windows. Any help would be appreciated!
Unfortunately, I do not have any input. If you find a way, please, share via PR :smile:
Just as an FYI.
Puppeteer can skip the download through env variables but this is not the standard approach as outlined here:
When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, or to download a different browser, see Environment variables.
Haven't checked it myself but could --puppeteerConfigFile be used for that?
Duplicate of #331