In this blog, we are going to learn all the commands which are very useful in developing SharePoint Framework client side solutions. These commands are useful in both web parts and extensions development using SPFx Framework.
You can install node modules and use them in SharePoint Framework and either you can use things from CDN also.
Clean and build the SharePoint Framework (SPFx) client side solution.
gulp clean
gulp build
Create app package of SharePoint Framework (SPFx) client side solution.
gulp bundle --ship
gulp package-solution --ship
Install Jquery in SharePoint Framework (SPFx) client side solution.
npm install jquery --save
npm install @types/jquery --save-dev
Install bootstrap in SharePoint Framework (SPFx) client side solution.
npm install bootstrap --save
npm install @types/bootstrap --save-dev
Install bootstrap with a specific version in SharePoint Framework (SPFx) client side solution.
npm install bootstrap@4 --save
npm install @types/bootstrap@4 --save-dev
Use the react moment and custom scrollbars in SharePoint Framework (SPFx) client side solution. Use the commands mentioned below to install them.
npm install --save moment react-moment
npm install react-custom-scrollbars --save
Install fontawesome in SharePoint Framework (SPFx) client side solution.
npm install --save @fontawesome/fontawesome-free
Thanks!!!!!
Comments
Post a Comment