SPFX Build time is too long. 🐌
Category
- [x] Question
- [ ] Typo
- [ ] Bug
- [ ] Additional article idea
Expected or Desired Behavior
When you are serving a spfx project , with possibly multiple webparts and extensions, the build time should be close to the build time of "create-react-app".
Observed Behavior
It takes multiple minutes for the serve to build the solution and serve it with reload.
Steps to Reproduce
Create a solution with multiple webparts with react. Build it.
TLDR: build time is too long, and there is no hot reload.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Respectfully, this isn't a question/bug or actionable... it's just venting. "It should be as fast as this unrelated project type" is arbitrary.
WRT build times, there have been some good blog posts on the subject, such as: https://spblog.net/post/2019/09/18/spfx-overclockers-or-how-to-significantly-improve-your-sharepoint-framework-build-performance
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues