Azure / Azure/api-management-developer-portal

Published website containing theme.js of size 40mb

Open
#2,824 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

## Bug description

After publishing the website without making any changes to the webpack config the theme.js file is above 40mb impacting performance.

![Image](https://github.com/user-attachments/assets/1f8d3aa9-2285-4331-8df7-f315a9c1473f)

Is this the expected size or some misconfiguration from my end.

## Reproduction steps

1. npm run start
2. apply new starter theme
3. publish
4. npm run publish-arm

## Expected behavior
Proper minified or split js file.

## Is self-hosted portal?

Yes

## Release tag or commit SHA (if using self-hosted version)

2.33.0

## API Management service name

apim-nacha-dev

## Environment

- Operating system: [Windows]
- Browser: [Google Chrome]

## Additional context

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the published bundle with npm run start, applying the new starter theme, then npm run publish-arm. Start by inspecting the webpack config and the generated theme.js size; done means the published JavaScript is properly minified or split rather than exceeding 40 MB.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.