Describe the bug
On the deploy command, only files that exist in dist// are uploaded to Azure, and not folders. This bug specifically affects the assets folder, which is added to the dist folder on build.
To Reproduce
Steps to reproduce the behavior:
Create files in the project's assets folder
Run ng add @azure/ng-deploy
If the project was build already, build it again: ng build --prod
Run ng run <project-name>:deploy
Go to Azure portal, look at the content of the storage account, under $web.
Optional: If there are references in the project to the files, the resources will be broken on the deployed site. For example, when using <img src="assets/pic.jpg"> in one of the components, the image will be broken on the deployed site.
Expected behavior
The assets folder and its content should exist in the file list in $web.
Images and other assets should be available on the deployed website.
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Describe the bug On the deploy command, only files that exist in dist// are uploaded to Azure, and not folders. This bug specifically affects the assets folder, which is added to the dist folder on build.
To Reproduce Steps to reproduce the behavior:
ng add @azure/ng-deploy
ng build --prod
ng run <project-name>:deploy
<img src="assets/pic.jpg">
in one of the components, the image will be broken on the deployed site.Expected behavior The assets folder and its content should exist in the file list in $web. Images and other assets should be available on the deployed website.
Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Additional context