Publish an add-in using Visual Studio Code and Azure - Suggestion for improvement #4979
Labels
Area: add-ins
Feedback on add-ins content that's relevant to multiple Office hosts.
Needs: author feedback
Waiting for author (creator) of Issue to provide more info
Status: under investigation
Issue is being investigated
Type: doc request
Request for new documentation or updates/enhancements to existing documentation
Article URL
https://learn.microsoft.com/en-us/office/dev/add-ins/publish/publish-add-in-vs-code#using-visual-studio-code-to-publish
Describe the problem
I am using the instructions on to deploy an office addin to Azure. It works great but I have a suggestion for improvement to the process. Step 9 reads:
There are two issues with this step. First, after deploying to Azure, I start working on the development side again and I have to undo this change. Second, all of my code is under source control and I have to take care to know what state the manifest file is in before checking in my changes.
To avoid this problem, I edited the webpack.config.js file. I replaced urlProd with the URL from step 8 and removed the trailing / from urlProd and urlDev. This last step was necessary so that the https://localhost:3000 gets updated correctly. I believe that this means that the manifest in the dist folder is correct and I no longer need to do step 9. Thus, step 9 could be amended to
be
Step 13 would then be changed:
I am sure that the removal of the trailing / could be implemented in the transform(content) section of the webpack.config.js file rather than manually in step 9 but that would involve changing yeoman's addin creation.
thanks,
The text was updated successfully, but these errors were encountered: