Build Fast, Efficient Experiences with a New LWC-Based Template (Developer Preview)

Use the latest Build Your Own (LWC) template to develop communities that load quickly and scale well. Based on Lightning Web Components (LWC), a new programming model that delivers exceptional performance, this lightweight template supports fully customized LWC solutions. For example, if you specialize in building experiences with your own design system and component library, you can remove SLDS and include custom Lightning web components to achieve the pixel-perfect experience that you want.

Where: This developer preview applies to communities accessed through Lightning Experience and Salesforce Classic in Developer editions.

Note

Note

The Build Your Own (LWC) template is available as a developer preview in new Developer orgs. Build Your Own (LWC) isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality developed with these commands or tools. You can provide feedback and suggestions for the template in the Lightning Web Runtime Communities group in the Trailblazer Community.

Why: Community Cloud has an existing Build Your Own template, which supports Aura and Lightning web components. However, because Build Your Own (LWC) is based exclusively on the Lightning Web Components programming model, the template:

  • Delivers unparalleled performance with page load speeds that are up to three times faster.
  • Supports the development of reusable Lightning web components and themes that follow modern web standards. Most of the code you write is standard JavaScript and HTML, making the model easy to learn.
  • Includes Apex and User Interface API support, so you can access Salesforce records, SOSL, and more, to provide data-rich experiences for your customers.
Tip

Tip

Build Your Own (LWC) is a minimal template that provides few components and only the most essential pages. Therefore, the template is best suited to developers who are comfortable developing Lightning web components, and working with Salesforce DX, User Interface API, and Apex.

How: To start using the template in new Developer orgs, from Setup, enter Communities Settings in the Quick Find box, and then select Communities Settings. Select Enable the Build Your Own (LWC) template, and save your changes. (For existing Developer orgs, you must first contact Salesforce to access the checkbox.)

After you enable the template, it appears in the community creation wizard.The community creation wizard

Important

Important

For previous pilot participants, ensure that you publish your community when the Spring ’20 release becomes available. Until you republish your community, your live site won’t function correctly.