Follow up to my SPFx Generator v1.1.1 On-Prem / SPO Question

Blog post examines updates to SPFx generator and the potential need for separate projects for on-premises and online SPFx deployments.

A few weeks ago I published a blog post that shared some recent updates to the SharePoint Framework (SPFx) Yeoman generator: SharePoint Framework Generator Recent Updates (v1.1.1) and Sign of On-Prem SPFx to Come? .

In that post I shared some things I found when picking at the generator’s source code. Specifically, I found some references to “onprem” and “spo”.

This led me to ask the question “will we have two different types of projects for SharePoint Online & SharePoint On-Premises deployments when the SharePoint Framework ships to the SharePoint Server 2016 in Feature Pack 2 later this year?

I reached out to Microsoft and got some additional information to share on this.

First, keep in mind that the version of the SPFx that will be included in SharePoint Server 2016 Feature Pack 2 (FP2) will be a snapshot of what the SPFx is at a given time. The version of SPFx in SharePoint Online will likely be ahead of the on-premises version & include additional features. For instance, the new SPFx Extensions are currently in preview & planned to go GA later this year, but they won’t be in FP2.

With this in mind, the generator will provide developers some guidance on what is supported in each environment. That’s what these switches are for. For instance, if you are on-prem, you will not see extensions as an option in the generator because they are only available in SharePoint Online. However, client-side web parts will work in both on-premises and SharePoint Online environments.

What we see in the generator is the beginnings of this prompt we’re likely to see down the road in a future update of the generator. It won’t create two different types of projects based on the target environment, it will simply be used to help guide the available options when creating new SPFx components in your projects.

Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web & cloud developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to helping you be the best Microsoft 365 web & cloud developer. He lives with his wife & two kids in Florida.

Share & Comment