From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

A single project without Angular CLI

A single project without Angular CLI

From the course: SharePoint Framework for Developers: 5 SPFx and Angular

Start my 1-month free trial

A single project without Angular CLI

- So let's talk about the first approach, which is a single big monolithic project that you build yourself without using Angular CLI at all. What do you think is the biggest advantage of that? Well, you craft up the project exactly like how you want it to be. So you would take an SPFx project I guess, and you would edit the package.json, add a bunch of node packages in there. You get my idea, right? It's getting pretty complicated. Disadvantages. Well let's talk about, first, bundling and minification. Angular CLI gives you a lot of of logic building for bundling and minification. And proper bundling and minification, and tree shaking, well, it's a lot of work. Especially when you talk about lazy loading, which is a very valuable feature of Angular. And to build lazy loading in a webpack based project, not the simplest thing to do. And this can make a 100x difference to the final package size. Why would you want to lose on this advantage? Versioning. So, typically what happens is…

Contents