Posts

Showing posts with the label serve

Speed up your development by speeding gulp serve

Image
 Hi friends, I have been not a very big fond of PnP solutions, but sometimes they do really great. Today they have come up with a real booster to the SPFx development. Most of us when working on a big SPFx solution with 5 or more webparts in a solution then we must have felt that the gulp serve process is too slow to build the solution and keeps on decreasing as the solution size increases. Now there is a solution to the problem. Steps... Install the npm package globally run the command install the package execute the command And that's it. Once the npm run serve  is executed, it will call the gulp serve and then see the magic, by changing any of the file and save the file, With my personal experience, it was taking more than 2 mins now it's just the matter of milliseconds Support: It supports the SharePoint Framework 1.4.1 and above (not SP2016), so no worries and build fast. For more documentation on how it does the magic, click here Here is the youtube video which explains ...

Useful NPM commands wrt SharePoint Framework SPFx

Image
Hi, we are all now in the new world of SharePoint i.e.. SharePoint Framework, and Microsoft had changed a lot from its predecessor. In this blog I will tell you about the most basic commands that you might need in day to day operations. Below are some of the commands, that I found to be useful: npm -v: This is to know the version of the npm and to check if the npm is installed on your machine node -v: This command tells the version of the node.js and to check if the node is installed on your machine npm outdated: Tells you which installed packages are outdated with respect to what is current in the npm registry but allowable by the version definition in your package.json npm prune: Removes packages not depended on by your project according to your package.json npm list:   Lists all installed packages npm install <package>: Installs the npm package npm install: Installs all the dependencies mentioned in package.json npm uninstall <package>:...