Reputation: 473
I have a file copy task in my build to copy the Web.config in the root of my create-react-app project folder, and it shows that it is copying it to the build file after the yarn build task completes.
But it is never in the archived folder. How do I modify this build or copy files task to get this Web.config
file into my build folder so that it can get archived and dropped for release?
I copy it from the $/repo dir/app folder to build (yarn build step creates the build folder)....but the Create release package that archives the build folder does not contain it in the produced zip.
Here's a screenshot of my folder structure in my repo (what's in the $/repo dir/app folder):
Upvotes: 3
Views: 2372
Reputation: 21
Include the web.config file in the public
folder
Now the file gets included in the build and dropped for release
Upvotes: 2
Reputation: 19461
Because you have coded all the paths, I can’t analyze this issue according to your specific situation.
You can specify the Web.config file from ...
to see if it can be successfully copied to the build folder.
It would be much easier for people to investigate further and reply if you could attach detailed file path and logs.
Upvotes: 0
Reputation: 41755
In the Copy task you need to specify full path of the build
folder, for example:
$(Build.SourcesDirectory)/build
Upvotes: 2