SPFX-Fast-Serve : A replacement to Gulp Serve in our SharePoint Framework Solution

Sathish Nadarajan
 
Solution Architect
August 18, 2020
 
Rate this article
 
Views
2623

In this article, let us see a replacement to Gulp Serve. So far in the world of SPFx, we might have used the Gulp Serve command to work with the workbench. But it took few seconds to build the entire code base and deliver to the workbench.
To reduce the time, there is an utility called spfx-fast-serve released today. It is very easy to do the setup.

1. Install “npm install spfx-fast-serve -g

2. Type spfx-fast-serve which will open a console

3. Once the command got executed, we need to run “npm install

4. After that, execute “npm run serve” instead of “gulp serve”

The time taken to compile the changes is less than a second. And it seems very useful utility to fasten our development. Usually in Gulp Serve, it took around 3-8 seconds for my solutions. But with this, it is taking less than a second. The reason behind this is, this utility is intelligent enough to compile only the modified files. But Gulp serve will compile the entire solution to serve.

Happy Coding
Sathish Nadarajan

Category : Office 365, SharePoint

Author Info

Sathish Nadarajan
 
Solution Architect
 
Rate this article
 
Sathish is a Microsoft MVP for SharePoint (Office Servers and Services) having 15+ years of experience in Microsoft Technologies. He holds a Masters Degree in Computer Aided Design and Business ...read more
 

Leave a comment