Can You Package a Static Website in a PowerPoint Add-in?
Question details
The user wants to know if it is possible to bundle static web files like HTML, CSS, JavaScript, and WebAssembly directly into a PowerPoint Add-in locally, avoiding the need for an external web host.

- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Developing and deploying a modern PowerPoint Office Add-in.
- Observed behavior
- Modern Office Add-ins rely on web technologies, raising questions about whether they can be fully self-contained offline packages similar to traditional VBA projects.
Ensure you have access to an HTTPS-enabled web hosting service, as modern Office Add-ins strictly require a secure web server to load client-side files.
Host the Static Files on an HTTPS Web Server
Office Add-ins cannot be packaged as self-contained local files; they must be hosted externally and linked via the XML manifest.
Unlike older VBA macros which embed directly into the document, modern Office Add-ins (built with Office.js) operate as independent web apps running in a browser control. They require all HTML, CSS, JavaScript, and WebAssembly files to be served from an external server.
To deploy your add-in, you must host your static website on a secure HTTPS server and point your add-in's manifest file to that location.
Develop and finalize your client-side files, including your HTML, CSS, JavaScript, and any WebAssembly (WASM) components.
Select a static web hosting service that supports HTTPS. Free options like GitHub Pages, Azure Static Web Apps, or Cloudflare Pages work perfectly for static sites.
Upload your website files to the chosen hosting provider and verify that they are accessible via a secure HTTPS URL.
Open your add-in's XML manifest file and locate the <SourceLocation> tag. Update the DefaultValue attribute to point to the new HTTPS URL of your hosted web application.

Looking for a Lightweight, Highly Compatible Presentation Tool?
While dealing with add-in deployments and configurations, having a seamless, lightweight Office alternative can boost your productivity. WPS Office offers robust presentation software that is fast, free, and incredibly easy to use.
- 1. Download and Install: Visit the WPS Official website to download the free installer, then run it to install the suite on your device.
- 2. Open WPS Presentation: Launch the application and select Presentation to start a new slideshow or open an existing file.
- 3. Work Seamlessly: Drag and drop your existing .pptx files directly into WPS Presentation without losing any original formatting or layouts.

Frequently Asked Questions
Can I use a local file path (file://) in my Office Add-in manifest?
No. Modern Office Add-ins mandate a secure HTTPS connection. The SourceLocation in your manifest must point to an https:// URL, meaning local file paths will not work for deploying or running the add-in.
Why does VBA allow local bundling but Office.js does not?
VBA scripts are natively embedded directly into the binary or XML structure of the document file (e.g., .pptm). Modern Office Add-ins, however, are essentially web applications loaded inside a secure web view container provided by the Office host, requiring standard web hosting protocols.
Where can I host my static Office Add-in files for free?
You can host static files (HTML, CSS, JS, WASM) securely for free using services like GitHub Pages, Cloudflare Pages, Netlify, or the free tier of Azure Static Web Apps, all of which provide the required HTTPS encryption out of the box.
How do I distribute my modern Office Add-in once the files are hosted?
Once your web files are hosted on an HTTPS server, you distribute the lightweight XML manifest file to your users. They can sideload this manifest locally, or administrators can deploy it centrally via the Microsoft 365 admin center.




