Azure / ng-deploy-azure

Deploy Angular apps to Azure using the Angular CLI
MIT License
78 stars 39 forks source link

Folders and their content are not deployed #26

Closed shmool closed 5 years ago

shmool commented 5 years ago

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:

  1. Create files in the project's assets folder
  2. Run ng add @azure/ng-deploy
  3. If the project was build already, build it again: ng build --prod
  4. Run ng run <project-name>:deploy
  5. Go to Azure portal, look at the content of the storage account, under $web.
  6. 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

Additional context