---
schema_version: "1"
id: 630424eb29075d2b06dfd983aa85950f8c84f926357cf19459f3698b5fe0a4ed
title: Automatically Compile Lightning Web Component Omniscript and Flexcards (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_build_tool_auto_compile_lwc.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_build_tool_auto_compile_lwc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cf3809012d2d22f4ed4274bd8e906283379a8aefab3d8e45bf2833b67218b007
description: For the managed package runtime, the Omnistudio Build Tool can automatically compile and deploy Lightning Web Component (LWC) Omniscript and Flexcards after activation through Puppeteer or Chrome installed on your local machine.
products:
  - Omnistudio
release: "264"
---
# Automatically Compile Lightning Web Component Omniscript and Flexcards (Managed Package)

For the managed package runtime, the Omnistudio Build Tool can automatically compile and deploy Lightning Web Component (LWC) Omniscript and Flexcards after activation through Puppeteer or Chrome installed on your local machine.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

To install Puppeteer into a build machine or locally, run this command:

```
npm install puppeteer -g
```

If your system has Chrome installed, the Build Tool starts a headless Chrome session, authenticates to the deployment org, and uses a page in the managed package to compile and deploy the Omniscript or Flexcard.

To disable this feature, add these lines to your job file:

```
ignoreLWCActivationOS: true 
ignoreLWCActivationCards: true
```

Otherwise these settings are on by default.

To disable the local compilation of the Flexcards so that the npmAuthKey is used only for the local compilation of Omniscript, add these lines to your job file. The legacy method is used for the Flexcard LWC activation:

```
ignoreLocalCompilationCards: true
```

Where there’s a specific executable path for Chrome, or you don’t want to use its headless feature, use these commands:

```
puppeteerHeadless: false
puppeteerExecutablePath: path/of/chrome
```