Speed up and make your SPFx reloads quick and easy with the SPFx-Fast-Serve tool.

Speed up and make your SPFx reloads quick and easy with the SPFx-Fast-Serve tool.

Speed up and make your SPFx reloads quick and easy with the SPFx-Fast-Serve tool.

Hello everyone! I’m back! In the past period, I’ve been busy expanding my knowledge, reading some Microsoft Learning materials, trying out new things, and handling various tasks, which left me with little time to write a blog. 🥲

But let’s focus on today’s topic. If you have worked on a SharePoint project using SharePoint Framework Extension (SPFx) and encountered the issue of slow build and serve times, especially with large projects, you probably know how frustrating it can be. Waiting and waiting for gulp to clean, build, and serve can take forever! ⌛️ That’s why I’m here to introduce you to a fantastic tool called “SPFx-Fast-Serve,” which can drastically speed up your code editing process and serve your project in just 0.1-4 seconds! 🥳

SPFx time speed comparison

How SPFx-Fast-Serve works:

As far as I understand, SPFx-Fast-Serve performs a custom webpack build to generate output files similar to what the SharePoint Framework build pipeline does. However, it optimizes several aspects that the standard SPFx Build Pipeline does slowly, making it much faster and efficient.

  1. Open the terminal/cmd and run the command:

    npm install spfx-fast-serve -g
  2. Change the current directory in the terminal/cmd to your SPFx project.

  3. Then, run the following command:

    spfx-fast-serve

    Setup SPFx-Fast-Serve in package.json It will create the “fast-serve” folder and add the “serve” command.

  4. After that, run npm install again.

    npm install
  5. Once the installation is complete, you can run your project using the following command:

    npm run serve

With these steps, you’ll have SPFx-Fast-Serve installed and be able to run your project efficiently.

Additional information you should know:

  • If you have a migration/upgrade of SPFx version, you only need to update the “spfx-fast-serve-helpers” version to match your new SPFx version. For example, if you upgrade to SPFx v1.15.0, update “spfx-fast-serve-helpers” in your package.json to version 1.15.0 and then run npm install again.
  • SPFx-Fast-Serve supports SPFx versions starting from v1.4.0 and onwards.
  • It is compatible with SharePoint Online and SharePoint 2019.

This concludes the blog introducing the basic usage of the SPFx-Fast-Serve tool. If you wish to delve deeper, you can find additional information in the References below. I hope this content proves beneficial for those working on SPFx projects, enabling faster and smoother Run/Hot Reload experiences. 🚀

See you again soon! 🧑🏻‍💻👋


References:

Related Posts

Let's check our site's accessibility easily using 'Accessibility Insights for Web' on Microsoft Edge.

Let's check our site's accessibility easily using 'Accessibility Insights for Web' on Microsoft Edge.

Hello to all the readers who have come across this article. Lately, I've been quite busy and it's taken me a while to find some free time to write on Medium. Today, I want to share some knowledge tha

read more
Let's try to create Power Automate connected to SQL Server for sending Leave Approval Email using Low code together.

Let's try to create Power Automate connected to SQL Server for sending Leave Approval Email using Low code together.

Hello everyone! I've been away for a long time from blogging due to various events that have kept me busy, making it challenging to find time for writing. In my latest article, I briefly introduced P

read more
Let's determine your and your team members' DISC personality types

Let's determine your and your team members' DISC personality types

👋 Hello, everyone! 👋Today, I'd like to share something unrelated to development. A few months ago, my older brother (using the pseudonym "P'Tan Mycos") shared some knowledge with me and my friend

read more
Conditional Formatting (Fx) in PowerBI Custom Visual

Conditional Formatting (Fx) in PowerBI Custom Visual

👋 Hi Everyone 👋 During this time, I have a chance to implement the PowerBI Custom Visual with my team. And we spent a lot of time researching the conditional formatting (Fx) and we found many inter

read more
An Introduction to Microsoft's Power Automate

An Introduction to Microsoft's Power Automate

Today, we're introducing Microsoft's Power Automate, formerly known as Microsoft Flow. If you're familiar with Microsoft Power Platform services such as Dynamics 365, SharePoint, Power Apps, PowerBI,

read more
Write Unit Tests for React Hooks using react-hooks-testing-library

Write Unit Tests for React Hooks using react-hooks-testing-library

Hooks in React are a feature that has drastically changed the way we write React. It's like undergoing plastic surgery in Korea, where some developers love the new look, while others prefer the old o

read more
Scan code with Credential Scanner on Azure DevOps

Scan code with Credential Scanner on Azure DevOps

🥳 Happy New Year 2023! 🥳Wishing everyone a great year ahead!Now, let's get down to business. Today, I'm going to introduce you to a handy tool that checks for leaked passwords, secrets, certifi

read more
Easy way to check user’s permission on SharePoint Online site in the web part

Easy way to check user’s permission on SharePoint Online site in the web part

Hello Everyone! 🎉 Happy New Year 2021 🎉 I hope you have a wonderful holiday, good vibes, and a nice party 🍻. This blog is the 2nd content which’s I write in English. In the previous blog, I explai

read more
SharePoint Group & Permission levels in SharePoint Online

SharePoint Group & Permission levels in SharePoint Online

Hello everyone 👋 !!! This is the 1st time that I wrote the SharePoint Online blog in English. This blog explains permission levels in SharePoint Online. Once you create a new site in SharePoint Onli

read more
Convert interface to enum (for those too lazy to type 'name' in the input form) in TypeScript

Convert interface to enum (for those too lazy to type 'name' in the input form) in TypeScript

![Convert interface to enum cover](/images/posts/transform-interface-as-enum-typescript/transform_interface-as-enum-cover.png)It's a small trick to convert an Interface to an Enum, helping to solve

read more
What is SharePoint? How does it work? Let's take a look together! 😆

What is SharePoint? How does it work? Let's take a look together! 😆

Hello everyone who stumbled upon and is reading this content. After spending a considerable time exploring various content on Medium, I wanted to share a little bit of my knowledge. Having delved int

read more