WpwVsceIsoPlugin

new WpwVsceIsoPlugin(options)

Parameters:
NameTypeDescription
optionsWpwPluginOptions

Plugin options to be applied

Extends

Members

(protected) ErrorCode

(protected) InfoCode

(protected) Msg

(protected) MsgCode

(protected) WarningCode

(protected) _arr_

Utility shortcut to @spmhome/type-utils/array set of functions

.

Utility shortcut to @spmhome/type-utils/array set of functions

(protected) _async_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

(protected) _cmn_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

(protected) _crypto_

Utility shortcut to @spmhome/type-utils/crypto set of functions

.

Utility shortcut to @spmhome/type-utils/crypto set of functions

(protected) _date_

Utility shortcut to @spmhome/type-utils/date set of functions

.

Utility shortcut to @spmhome/type-utils/date set of functions

(protected) _fs_

Utility shortcut to @spmhome/cmn-utils/fs set of functions

.

Utility shortcut to @spmhome/cmn-utils/fs set of functions

(protected) _io_

Utility shortcut to @spmhome/cmn-utils/io set of functions

.

Utility shortcut to @spmhome/cmn-utils/io set of functions

(protected) _json_

Utility shortcut to @spmhome/type-utils/json set of functions

.

Utility shortcut to @spmhome/type-utils/json set of functions

(protected) _mime_

Utility shortcut to @spmhome/type-utils/mime set of functions

.

Utility shortcut to @spmhome/type-utils/mime set of functions

(protected) _node_

Utility shortcut to @spmhome/cmn-utils/node set of functions

.

Utility shortcut to @spmhome/cmn-utils/node set of functions

(protected) _num_

Utility shortcut to @spmhome/type-utils/number set of functions

.

Utility shortcut to @spmhome/type-utils/number set of functions

(protected) _obj_

Utility shortcut to @spmhome/type-utils/object set of functions

.

Utility shortcut to @spmhome/type-utils/object set of functions

(protected) _path_

Utility shortcut to @spmhome/cmn-utils/path set of functions

.

Utility shortcut to @spmhome/cmn-utils/path set of functions

(protected) _pms_

Utility shortcut to @spmhome/type-utils/promise set of functions

.

Utility shortcut to @spmhome/type-utils/promise set of functions

(protected) _rgx_

Utility shortcut to @spmhome/type-utils/regex set of functions

.

Utility shortcut to @spmhome/type-utils/regex set of functions

(protected) _str_

Utility shortcut to @spmhome/type-utils/string set of functions

.

Utility shortcut to @spmhome/type-utils/string set of functions

(protected) _ts_

Utility shortcut to @spmhome/cmn-utils/ts set of functions

.

Utility shortcut to @spmhome/cmn-utils/ts set of functions

(protected) _types_

Utility shortcut to @spmhome/type-utils/type set of functions

.

Utility shortcut to @spmhome/type-utils/type set of functions

(protected) _ver_

Utility shortcut to @spmhome/cmn-utils/version set of functions

.

Utility shortcut to @spmhome/cmn-utils/version set of functions

(protected) _www_

Utility shortcut to @spmhome/cmn-utils/fetch set of functions

.

Utility shortcut to @spmhome/cmn-utils/fetch set of functions

build :WpwBuild

buildOptions :WpwBuildOptionsPluginConfig.<"vsceiso">

Type:
  • WpwBuildOptionsPluginConfig.<"vsceiso">

cacheMap :Record.<WpwBuildOptionsKey, WpwCache>

Type:

compilation :WebpackCompilation

Type:
  • WebpackCompilation

compiler :WebpackCompiler

Type:
  • WebpackCompiler

(protected) create

(protected) ctor

(protected) disposables :Array.<IDisposable>

Type:
  • Array.<IDisposable>

(protected) disposed :boolean

Type:
  • boolean

global

hookCurrent :string|undefined

Type:
  • string | undefined

hookMessages :Record.<string, {start: string, done: string, fail: string}>

Type:
  • Record.<string, {start: string, done: string, fail: string}>

(readonly) initMsg :string

Type:
  • string

(protected) initialConfig :any

cloned initial configuration object prior to any runtime modifications

.

cloned initial configuration object prior to any runtime modifications

Type:
  • any

(protected) name :string

module name

.

module name

Type:
  • string

(protected) slug :string

url/path friendly module name

.

url/path friendly module name

Type:
  • string

(protected) spmh

Top level export of spmh shared library packages ...{ cls, type, util }...

Top level export of spmh shared library packages ...{ cls, type, util }...

(protected) store :WpwCache

subtype :WpwModuleSubType

Type:
  • WpwModuleSubType

(protected) wpc

Methods

addMessage(info, ifFirstopt) → {SpmhError}

Parameters:
NameTypeAttributesDescription
infoPartial.<SpmhMessageInfo> | SpmhError
ifFirstboolean | undefined<optional>
Returns:
Type: 
SpmhError

apply(compiler) → {void|SpmhError}

Main webpack plugin initialization handler, called by webpack runtime to initialize this plugin.

Main webpack plugin initialization handler, called by webpack runtime to initialize this plugin.

Parameters:
NameTypeDescription
compilerWebpackCompiler
Returns:
Type: 
void | SpmhError

applyEntryExportedPaths(compilation, pkgJso) → {any}

Parameters:
NameTypeDescription
compilationWebpackCompilation
pkgJsoany
Returns:
Type: 
any

(async) emitRawAsset(path, tag, emitPathopt, immutableopt, noStatCheckopt) → {Promise.<string>}

Parameters:
NameTypeAttributesDescription
pathstring

path to source asset

tagstring

assset stats tag

emitPathstring<optional>

relative path emitted to dist, defaults to 'path' relative to ctx dir

immutableboolean<optional>
noStatCheckboolean<optional>
Throws:
Error
Returns:
Type: 
Promise.<string>

exec(command, program, asyncopt, optionsopt) → {WpwExecResultKind.<P>}

Parameters:
NameTypeAttributesDescription
commandstring
programstring
asyncP<optional>
optionsWpwModuleExecOptions<optional>
Returns:
Type: 
WpwExecResultKind.<P>

exec2(async, options) → {WpwExecResultKind.<P>}

Parameters:
NameTypeDescription
asyncP
optionsWpwExecOptions
Returns:
Type: 
WpwExecResultKind.<P>

(async) execScriptsAsync(defs, lPad) → {Promise.<({result: WpwExecResult, results: Array.<WpwExecResult>}|void)>}

All of the exec utility functions are executed in the context of a runtime build
instance, i.e.

All of the exec utility functions are executed in the context of a runtime build
instance, i.e. 'this' is of type InstanceType

Parameters:
NameTypeDescription
defsWpwPluginConfigRunScripts | WpwPluginConfigScript
lPadstring
Since
  • 1.6.0
Returns:
Type: 
Promise.<({result: WpwExecResult, results: Array.<WpwExecResult>}|void)>

execScriptsSync(scriptDef, lPad) → {Object|void}

All of the exec utility functions are executed in the context of a runtime plugin
instance, i.e.

All of the exec utility functions are executed in the context of a runtime plugin
instance, i.e. 'this' is of type InstanceType<WpwPlugin|WpwTaskPlugin>

Parameters:
NameTypeDefaultDescription
scriptDefWpwPluginConfigRunScripts
lPadstring
Since
  • 1.6.0
Returns:
Type: 
Object | void

fileNameStrip(file, rmvExtopt) → {string}

Parameters:
NameTypeAttributesDescription
filestring
rmvExtboolean<optional>

remove file extension

Returns:
Type: 
string

(protected) getErrorMessageCfg(message, codeopt, exceptionopt) → {WpwBaseMessageInfo}

Parameters:
NameTypeAttributesDescription
messagestring
codeSpmhMessageCode | null<optional>
exceptionSpmhError | WebpackError | Error | undefined<optional>
Returns:
Type: 
WpwBaseMessageInfo

getStore(moduleKeyopt) → {WpwCache}

Parameters:
NameTypeAttributesDescription
moduleKeyWpwBuildOptionsKey<optional>
Returns:
Type: 
WpwCache

(abstract, protected) getVendorPlugin(_compiler, _applyFirstopt) → {WebpackPluginInstance|Array.<WebpackPluginInstanceOrUndef>}

Parameters:
NameTypeAttributesDescription
_compilerWebpackCompiler
_applyFirstboolean<optional>
Returns:
Type: 
WebpackPluginInstance | Array.<WebpackPluginInstanceOrUndef>

hashLength() → {number}

Since
  • 1.10.1
Returns:
Type: 
number

hookdone(msgopt, rtnopt) → {T}

Parameters:
NameTypeAttributesDescription
msgstring | number<optional>
rtnT<optional>
Since
  • 1.11.0
Returns:
Type: 
T

hookstart(msgopt, writePluginOptsopt) → {WpwLogger}

Parameters:
NameTypeAttributesDescription
msgstring | number<optional>
writePluginOptsboolean<optional>
Since
  • 1.11.0
Returns:
Type: 
WpwLogger

(protected) invalidHookConfig(hookName, hookType, configDsc) → {SpmhMessage}

Parameters:
NameTypeDefaultDescription
hookNamestring
hookType"compiler" | "compilation"compilation
configDscstringasync/sync
Returns:
Type: 
SpmhMessage

isAsyncHook(hook)

Parameters:
NameTypeDescription
hookany

(protected) isCompilationHook(hook)

Parameters:
NameTypeDescription
hookany

(protected) isOutputAsset(name, isEntryopt, chkDbgopt, chkExtopt, chkHashedopt, noCacheGrpopt) → {boolean}

Parameters:
NameTypeAttributesDescription
namestring
isEntryboolean<optional>
chkDbgboolean<optional>
chkExtboolean<optional>

include file extension in comparisons, defaults to false

chkHashedboolean<optional>
noCacheGrpboolean<optional>
Returns:

boolean

Type: 
boolean

(protected) isSyncHook(hook, strictopt)

Parameters:
NameTypeAttributesDescription
hookany
strictboolean<optional>

(protected) isTapableHook(hook) → {boolean}

Parameters:
NameTypeDescription
hookWpwWebpackCompilerHook | WebpackCompilationHookName
Returns:

hook is WebpackHook

Type: 
boolean

outputAssetRegex(chkDbgopt, chkExtopt, chkHashedopt) → {RegExp}

Parameters:
NameTypeAttributesDescription
chkDbgboolean<optional>
chkExtboolean<optional>
chkHashedboolean<optional>
Returns:
Type: 
RegExp

printAssetList(i, pPfx, paths, lPad) → {string}

Prints an array of paths as they are processed, including only a specific # of lines
as determined by the log level verbosity, e.g.

Prints an array of paths as they are processed, including only a specific # of lines
as determined by the log level verbosity, e.g. log level 2 will print only the first 8
assets fo,lowed by a generalized message "+ ... additional assets"

Parameters:
NameTypeDefaultDescription
inumber | null

0-based index of current asset in the array parameter 'paths'

pPfxstring

asset path type / value prefix

pathsArray.<string>

array of abs paths indexed by parameter 'i'

lPadstring
Returns:
Type: 
string

(protected) tapCompilationHooks(optionsArray)

Parameters:
NameTypeDescription
optionsArrayArray.<WpwPluginCompilationTapOptionsPair.<any, any, boolean>>