Skip to content

Update webpack.config for better performance and support hot reloading #158

Open
@suuunly

Description

@suuunly

Expected behavior

I was expecting when I run npm run start in an office addin project, (which is the equivalent to:
office-addin-debugging start manifest.xml), that the project starts up fairly quickly, and uses a reasonable amount of memory given that I have done nothing to the project yet.

Current behavior

  • The project runs extremely slowly.
  • Hot reload does not seem to trigger, unless I am just getting too impatient
  • And webpack is shown to use 8.08 GB after the project has started up.

If I make changes in my project, and reload the addin from within Excel, then the memory usage jumps up to 10-11 gig, and then drops back down to 8.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. create a brand new excel addin react template, using the microsoft guide:

  2. run the project using the npm run start command

  3. make a change in your project, and notice how it does not update (or at least not relatively quickly). Also notice the excessive memory usage, in your Activity Monitor

Is this expected behaviour? or am I missing something?

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System: Mac OS 14.4 (23E214)
  • Node version: v20.11.0
  • Office version: Excel Version 16.84 (24041420)
  • Tool version: "office-addin-debugging": "^5.1.2",

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions