Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.65 KB

publish-add-in.md

File metadata and controls

19 lines (11 loc) · 1.65 KB

An Office Add-in includes two basic components: a manifest file and your own web application. The manifest defines various settings, including how your add-in integrates with Office clients. Your web application serves the HTML, JavaScript, and other files that provide the add-in's functionality and UI.

While you're developing your add-in, you can run the add-in on your local web server (localhost), but when you're ready to publish it for other users to access, you'll need to deploy the web application to a web server or web hosting service (for example, Microsoft Azure) and update the manifest to specify the URL of the deployed application.

When your add-in is working as desired and you're ready to publish it for other users to access, complete the following steps.

  1. From the command line, in the root directory of your add-in project, run the following command to prepare all files for production deployment.

    npm run build
    

    When the build completes, the dist folder in the root directory of your add-in project will contain the files that you'll deploy in subsequent steps.

  2. Upload the contents of the dist folder to the web server that'll host your add-in. You can use any type of web server or web hosting service to host your add-in.

  3. In VS Code, open the add-in's manifest file, located in the root directory of the project. Replace all occurrences of https://localhost:3000 with the URL of the web application that you deployed to a web server in the previous step.

  4. Choose the method you'd like to use to deploy your Office Add-in, and follow the instructions to publish the add-in.