Skip to content

Instantly share code, notes, and snippets.

@jsmithdev
Created April 15, 2019 22:37
Show Gist options
  • Save jsmithdev/4459612c6f2de972f2de2fb48b6c230c to your computer and use it in GitHub Desktop.
Save jsmithdev/4459612c6f2de972f2de2fb48b6c230c to your computer and use it in GitHub Desktop.
Example LWC metadata xml file to pull into vs code.
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="LWC_NAME">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>LWC_NAME</masterLabel>
<description>LWC_DESC</description>
<targets>
<target>lightning__RecordPage</target>
<target>lightning__AppPage</target>
<target>lightningCommunity__Page</target>
<target>lightningCommunity__Default</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__RecordPage">
<property name="data" type="String" ></property>
<property name="header" type="String" ></property>
</targetConfig>
<targetConfig targets="lightning__AppPage">
<property name="data" type="String" ></property>
<property name="header" type="String" ></property>
</targetConfig>
<targetConfig targets="lightningCommunity__Default">
<property name="data" type="String" ></property>
<property name="header" type="String" ></property>
<property name="recordId" type="String" ></property>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment