exclude folder from deployment
Hi,
I'm deploying from git and it works fine, however, I have a folder containing assets that should be in git but not deployed.
Is there a way to restrict what assets are deployed when using a git->npm build->page workflow?
4 Replies
You could put the output of the build into a separate folder, then upload that?
I'm using vite to build it already, I just need to find how to prevent copying the folder and it should be working indeed
Thanks so much to point me to the right direction, I've been barking at the wrong tree all along
Or, you can also add a
rm
to your build command to nuke the folder you don't want uploadedvite + rollup config changes made the trick without having to rm my way out of it, thanks