Images inside electron/ are not copied over to build/
typologist opened this issue · 2 comments
typologist commented
I have an electron/icons
folder, but it doesn't get copied to build/
when I run electron:dev
. Any idea why? Thanks in advance :)
ledenmat commented
I am making the assumption that your electron/icons does not contain js or ts files. I am also making the assumption that this does not work on electron:build.
The reason it is not moving over the icons folder is because tsc (command in electron:dev and electron:build that turns .ts files into .js in /build) does not move over files other than ts (and optionally tsx, jsx, and js). You will need to add a copy folder step in your script (e.g. Using copyfiles )
yhirose commented
@typologist, hope @ced-led's comment helps you.