UiExtensionCompilerOptions

UiExtensionCompilerOptions

UiExtensionCompilerOptions

Package: @vendure/ui-devkit File: types.ts

Options to configure how the Admin UI should be compiled.

Signature

interface UiExtensionCompilerOptions {
  outputPath: string;
  extensions: Array<AdminUiExtension | TranslationExtension>;
  devMode?: boolean;
  watchPort?: number;
}

Members

outputPath

property
type:
string
The directory into which the sources for the extended Admin UI will be copied.

extensions

property
An array of objects which configure Angular modules and/or translations with which to extend the Admin UI.

devMode

property
type:
boolean
default:
false
Set to true in order to compile the Admin UI in development mode (using the Angular CLI ng serve command). When in dev mode, any changes to UI extension files will be watched and trigger a rebuild of the Admin UI with live reloading.

watchPort

property
type:
number
default:
4200 | undefined
In watch mode, allows the port of the dev server to be specified. Defaults to the Angular CLI default of 4200.