Day 12: Local development server for Lightning Web Components

By

2 minutes de lecture

Let’s talk about Local development server. Each day we will reveal our “tip of the day” regarding the #Winter20 release.

What’s new?

When you develop Lightning Web Components you can now see live changes as soon as you save your code in your local environment!

To use the local LWC development server, you have to follow three simple steps:

  1. Open the terminal and install the local development server
    sfdx plugins:install @salesforce/lwc-dev-server
  2. Start the server by running this command
    sfdx force:lightning:lwc:start
  3. Finally, go check it out at http://localhost:3333, you will find a list with the components in your sfdx project:

We love it!

As a developer, I used to spend a lot of time pushing my components to an org, testing them, finding bugs, correcting the code, pushing it one more time, testing again, and so on.

This tool saves me a lot of time!

Now, there is no need to deploy to an org to preview your component. The server will also show any errors you may have made during development. And the best part is that you can use data from your org to test the component in local!

You can learn more about this feature in the Release Notes here.

Want to learn more? Check out our next article Permission sets groups and follow us on Linkedin!

Read more posts

Enforce code standards with PMD

Developers working on a project usually set coding rules to have a standardized codebase. It is an important piece of the code maintainability, and it can be very easy …
March 2023
Advices
Scratch orgs

Uncovering Salesforce Settings: A Step-by-Step Guide for Scratch Orgs

Today, it’s pretty easy to build your Scratch Org definition file when you know what Settings you want to activate, as they are mapped with the same setting names …
February 2023
Advices
Business Analyst

Core qualities of a Business Analyst?

A common definition we are used to hear is that being a Business Analyst means to have a combination of both hard skills and soft skills. What does a …
June 2022
Advices
Image d'illustration d'une employée travaillant sur un ordinateur portable

Process builder and workflow make way to Flows (½)

Overview “If you can do it with a Workflow, then do it with a Process Builder, because everything a Workflow does, a Process Builder does it better”. If you …
March 2022
Advices

Day 22 : Salesforce new “Migrate To Flow tool” in Spring 22

As most of you already know, the workflow rules and process builders are planned to be retired in 2023 (no precise date defined so far). Today, I’m going to …
December 2021
Advices

Day 18 : Fake callout responses for test classes !

Hello everybody ! Today let’s talk about Apex tests classes in Salesforce. Everyone loves a good test class, and Salesforce makes it official by requiring to have a minimum …
December 2021
Advices