Options
All
  • Public
  • Public/Protected
  • All
Menu

Insert script src tag to include the minified js file in webpages.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private absoluteUrl

absoluteUrl: string

Absolute url to the js file.

Protected config

config: YassbConfig

Full config options

Protected directiveFullString

directiveFullString: string

Directive full string found in the file

Protected fileContents

fileContents: string

File contents there the yassb directive was found

Protected fileFullPath

fileFullPath: string

Full path to the file being processed

Private filename

filename: string

Filename of the js file to link to.

Protected lang

lang: string

Lang being processed

Private scriptElement

scriptElement: string

HTML code with the link to the script file.

Static regex

regex: RegExp = /<!-- include-script-src -->/g

Regex to match the comments to invoke the directive.

Methods

init

Private setAbsoluteUrl

  • setAbsoluteUrl(): void

Private setFilename

  • setFilename(): void

Private setScriptElement

  • setScriptElement(): void