Enjoy SharePoint Framework Development with Spfx-fast-serve

Enjoy SharePoint Framework Development with Spfx-fast-serve

Spfx-fast-serve

I started developing SharePoint Framework solutions back in 2018. And like many other developers, I was always frustrated by how slow the development process felt. For example, you would add a line of code and then wait for up to five minutes before you could see the changes you had made. I would use this time to grab a fresh cup of coffee or check my mailbox. Needless to say, by the time the "gulp serve" task was done, I was too distracted doing something completely unrelated. As a result, a minor change could take hours. 

Credits to Randall Munroe: comic about developers

Despite some performance improvements over the last few years, it is still not fast enough to enjoy the SharePoint Framework (SPFx). That is unless you are already using spfx-fast-serve. After spending a few moments to set it up, all my SharePoint Framework projects are now serving up to twenty times faster! I am blown away by how fast I can now develop using SPFx.

If you are still here, you are probably curious how to get spfx-fast-serve working.

  •  First, run the following command:
npm install spfx-fast-serve -g

  • Open your SharePoint Framework solution in a command line. Then run
spfx-fast-serve
  • Run
npm install
  • At last, run
npm run serve

Now enjoy your blazing fast SharePoint framework development.

Happy Sharepoint framework developers

Note that you can always continue using the good old gulp serve command. However, you will have no reason to do so since it works ten times slower.

In the following table, you can see how much faster spfx-fast-serve is in comparison to the classic gulp serve task:

comparison table

Do you have other tips and tricks for the development process? Please, let me know!

Credits

Jo?o Mendes

Senior Software Engineer with expertise in SPFx, Front-End, Microsoft365, ReactJS, NextJs, Fluent UI, Nodejs, Azure, Viva Connections, Agile, CSS, and HTML. UI/UX Design, IBMi, RPGLE, COBOL, DB2

3 年

Yes! Is a must have for all SPFx Developers.thank you Sergei Sergeev for the awesome tool ????????????

Michel Mendes

Microsoft MVP (Business Applications) | Power Platform | Power Apps | Power Pages | Microsoft 365 | SharePoint

3 年

Lifesaver!

Petro Zabenko

Sharepoint/PowerPlatform Developer/M365 consultant – Dentons

3 年

Awesome

Sergei Sergeev

Microsoft MVP (2017 - current), SharePoint & Microsoft 365 Developer, Architect and Consultant

3 年

Thank you for the mention, Denis!

要查看或添加评论,请登录

Denis Molodtsov的更多文章

  • Fastest Way to Edit Large SharePoint Lists

    Fastest Way to Edit Large SharePoint Lists

    Introduction Today I realized that few people know it is possible to edit SharePoint lists directly via Microsoft…

    12 条评论
  • Sharing SharePoint Documents via Outlook

    Sharing SharePoint Documents via Outlook

    Introduction I want to describe the latest sharing capabilities that are available in SharePoint/OneDrive and Outlook…

    2 条评论
  • Essential MS Teams Settings for Optimal Lighting and Appearence

    Essential MS Teams Settings for Optimal Lighting and Appearence

    Introduction A thriving digital era awash with endless arrays of virtual meetings and remote collaborations, our days…

  • Exporting Live Captions from Microsoft Teams

    Exporting Live Captions from Microsoft Teams

    Introduction The MS Teams Live Captions Saver is a fun experiment I conducted today. This tool allows you to scrape the…

    14 条评论
  • Testing a SharePoint Library with a Million Documents

    Testing a SharePoint Library with a Million Documents

    Back in 2010, Microsoft introduced the famous 5000 items query threshold to protect the site users from performance…

    28 条评论
  • SPFx - Failing with a Style

    SPFx - Failing with a Style

    What does your SharePoint Framework (SPFx) webpart do when it crashes? By default, SPFx webparts will not show anything…

    11 条评论
  • Audit Anonymous Users in Office 365

    Audit Anonymous Users in Office 365

    TLDR Proceed to the "Step 1: Enable the Unified Audit Log" if you want to set up the Office 365 Audit logs. Anonymous…

  • Run Multiple Instances of MS Teams

    Run Multiple Instances of MS Teams

    User Voice Demands this Feature Running multiple Teams instances is the second most requested feature on the User Voice…

    34 条评论
  • Swap Classic Team Site with a Modern Communication Site

    Swap Classic Team Site with a Modern Communication Site

    Introduction Starting from April 2019 or so, all new Office 365 tenants are getting the modern Communication site as…

    11 条评论
  • Dealing with Multiple Microsoft 356 Accounts

    Dealing with Multiple Microsoft 356 Accounts

    If you have been working with Microsoft 365 and you have multiple Microsoft accounts, I highly recommend using the…

    3 条评论

社区洞察

其他会员也浏览了