I have a link in my angular app which upon clicking should open a pdf file. But, this file should first be downloaded and to make it statically available.
Is there a way to download a file via http request while running npm install?
Basically, before hosting the app I need to download and copy a file to a static location which is then referred to from the href within the app
Something like
npm download http://download.com/file.pdf
or
instruct npm to download via paclage.json
question from:https://stackoverflow.com/questions/65601289/how-to-download-a-static-file-during-npm-install