Azure / Azure/api-management-developer-portal
Published website containing theme.js of size 40mb
- 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.

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