How to add dyamic assets in PKG

184 Views Asked by At

I'm trying to package an application which essentially takes a screenshot webpages using puppeteer which then stores it in a folder called report. However since the number of images changes vary I am unable to define this in the asset property of pkg. How do I go about this?

I've added an image of my package.json and the actual error

*Edit: I've tried to use

report/*.* || report/*.png

but to no avail

enter image description here

enter image description here

0

There are 0 best solutions below