1 / 6

Accelerate LWC Development With Salesforce’s Local Development Server

Boost your Lightning Web Components LWC development with Salesforce's Local Development Server. Learn how the LWC Stack and modern JavaScript Salesforce tools can streamline Salesforce development for Salesforce developers. Explore the benefits of the LWC local development server and enhance your LWC development workflow today

kandisa
Download Presentation

Accelerate LWC Development With Salesforce’s Local Development Server

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Streamline and Accelerate LWC Development with Salesforce’s Local Development Server (Beta) • Tired of constantly deploying and refreshing your UI every time you update your Lightning web components (LWCs)? • With Local Dev (beta), you can streamline your workflow by developing your LWCs while previewing them in real-time directly within your Lightning app or Experience Cloud site. • Note: Before you begin make sure that you have the latest version of the CLI command, run “sf update”.

  2. Step 1: Install the Local Dev Plugin • To begin, install the Local Dev Plugin using one of the following commands based on your environment: • For Production or Scratch orgs: • sfplugins install @salesforce/plugin-lightning-dev • OR • sfplugins install @salesforce/plugin-lightning-dev@latest • For Sandbox environments: • sfplugins install @salesforce/plugin-lightning-dev@prerelease

  3. Step 2: Enable Local Dev • Navigate to Setup in Salesforce. • In the Quick Find box, type Local Dev. • Select Local Dev and enable the feature. • Step 3: Enable Local Dev for Your Scratch Org • To configure Local Dev for a scratch org: • Open your SFDX project. • Locate the config/project-scratch-def.json file. • In the settings section of the file, add the following key"enableLightningPreviewPref": true

  4. Step 4: Preview • Use Local Dev to run a preview of the following types of Salesforce projects. • Lightning Experience apps (desktop and Salesforce mobile app) • LWR Sites for Experience Cloud • To preview your application, use the following steps: • Run the command below in the CLI to start the guided setup:sf lightning dev app • Alternatively, if you want to bypass the guided steps, you can directly use the following command in the VS Code terminal:sf lightning dev app --target-org --name --device-type --device-id --flags-dir • Replace the placeholders with the appropriate values for your project. This will launch the application preview. • Guided Steps When Running the Command sf lightning dev app: • 1.The command will first prompt you to select the device type.

  5. Thanks for Visit • Call Us +919820242561 • support@kandisatech.com • 201 Corporate Arena, Piramal Nagar, Goregaon West, Mumbai - 400104, India. • Get More info: https://www.kandisatech.com/blog-details/accelerate-lwc-development-with-salesforces-local-development-server

More Related