Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/set-webpack-public-path-plugin > SetPublicPathCurrentScriptPlugin

SetPublicPathCurrentScriptPlugin class

This simple plugin wraps the webpack bundle in an IIFE that sets a the document.currentScript value to a variable that is then used to populate the __webpack_public_path__ variable.

Signature:

export declare class SetPublicPathCurrentScriptPlugin extends SetPublicPathPluginBase 

Extends: SetPublicPathPluginBase

Constructors

Constructor

Modifiers

Description

(constructor)()

Constructs a new instance of the SetPublicPathCurrentScriptPlugin class

Methods

Method

Modifiers

Description

_applyCompilation(thisWebpack, compilation)

protected