Skip to content

API > wxt > ContentScriptEntrypoint

Interface: ContentScriptEntrypoint

Contents

Extends

Properties

inputPath

inputPath: string

Absolute path to the entrypoint's input file.

Inherited from

BaseEntrypoint.inputPath

Source

src/types/index.ts:595


name

name: string

The entrypoint's name. This is the filename or dirname without the type suffix.

Examples:

  • popup.htmlpopup
  • options/index.htmloptions
  • named.sandbox.htmlnamed
  • named.sandbox/index.htmlnamed
  • sandbox.htmlsandbox
  • sandbox/index.htmlsandbox
  • overlay.content.tsoverlay
  • overlay.content/index.tsoverlay

The name is used when generating an output file: <entrypoint.outputDir>/<entrypoint.name>.<ext>

Inherited from

BaseEntrypoint.name

Source

src/types/index.ts:591


options

options: ResolvedPerBrowserOptions<IsolatedWorldContentScriptEntrypointOptions | MainWorldContentScriptEntrypointOptions, never>

Source

src/types/index.ts:625


outputDir

outputDir: string

Absolute path to the entrypoint's output directory. Can be theInternalConfg.outDir or a subdirectory of it.

Inherited from

BaseEntrypoint.outputDir

Source

src/types/index.ts:600


skipped

skipped: boolean

Inherited from

BaseEntrypoint.skipped

Source

src/types/index.ts:601


type

type: "content-script"

Source

src/types/index.ts:624


Generated using typedoc-plugin-markdown and TypeDoc