LWC ( Lightning Web Component) Local Development Beta is released by Salesforce. This local development feature will help us to build, run and test the lightning web component on our local machine, we do not need to deploy the code on our salesforce org. Big Thanks to the LWC team.
This (Local Development) will reduce the time for LWC development and testing. This will definitely increase the productivity of the salesforce developer.
The Local Development Server is available through the Salesforce CLI plugin. It is configured and runs a Lightning Web Component enabled server on the local machine.
Setup# and Installation:
Setup:
- Developer Hub enabled org (Enable Dev Hub in Your Org)
- The recent version of the web browser (Chrome, Firefox, Edge)
- Window 7 or later, Mac 10.11 or later, Linux 14.0.4 or later
- Salesforce CLI
Installation:
- Open a terminal window (CMD run as administrator) run the following command to install the LWC local development server on your machine.
sfdx plugins:install @salesforce/lwc-dev-server
- Check for updates to the local development server.
sfdx plugins:update
- Open your VS Code IDE and add the.localdevserverfolder in your SFDX project to your.gitignorefile. Do not modify files inside of this folder.
- Authorize a Developer Hub (Dev Hub) in the VS Code and through CMD.
sfdx force:auth:web:login --setdefaultdevhubusername
- Log in using your Dev Hub credentials.
- Start the server.
sfdx force:lightning:lwc:start
- View the LWC Local Development server at http://localhost:3333/
- You can see all the LWC that you created in your org. Click on your favorite component to run.
- c-hello-web-component: you can see this web component rendered in-browser without deploying to the org.
- If you click on the button “View in VS Code” this will quickly open the component code in your VS Code IDE. When you can make any changes in the component code, those changes will refresh in the browser immediately.
Thanks
Arun Kumar
Excellent post, it will be definitely helpful for many people. Keep posting more like this.
ReplyDeleteSalesforce Training in Chennai
Salesforce Course in Chennai
Salesforce Training
AngularJS Training in Chennai
ccna course in Chennai
ReactJS Training in Chennai
Tally course in Chennai
Salesforce Training in Velachery
Salesforce Training in Tambaram
Salesforce Training in T Nagar
It's really amazing that Salesforce has announced LWC Local Development Beta. Thanks for sharing this information, very useful. LWC Local Development will ship with the Salesforce CLI out of the box, but for now you will need to install it by running the following command: sfdx plugins:install @salesforce/lwc-dev-server. Lots of Salesforce consulting company provides the training for their customers.
ReplyDeletevaluable blog thanks for sharing it...waiting for next update...
ReplyDeleteMobile Testing Training in Chennai
Mobile App Testing Training
Mobile Testing training in vadapalani
Mobile Testing training in Guindy
Mobile Testing training in Thiruvanmiyur
Manual Testing Training in Chennai
LoadRunner Training in Chennai
Photoshop Classes in Chennai
Spring Training in Chennai
QTP Training in Chennai
Nice Blog, Very Informative Content,waiting for next update...
ReplyDeletecore java training in chennai
core java classes
core java training in chennai
core java Training in OMR
core java training in Porur
C C++ Training in Chennai
javascript training in chennai
Hibernate Training in Chennai
Nice blog. I finally found great post here Very interesting to read this article and very pleased to find this site. Great work!
ReplyDeleteCyber Security Training Course in Chennai | Certification | Cyber Security Online Training Course | Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course | CCNA Training Course in Chennai | Certification | CCNA Online Training Course | RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai | SEO Training in Chennai | Certification | SEO Online Training Course
Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. https://ipafile.com Ipa file free download
ReplyDelete