Home > @rushstack/set-webpack-public-path-plugin > ISetWebpackPublicPathOptions
ISetWebpackPublicPathOptions interface
The base options for setting the webpack public path at runtime.
Signature:
export interface ISetWebpackPublicPathOptions
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(varName: string) => string | (Optional) A function that returns a snippet of code that manipulates the variable with the name that's specified in the parameter. If this parameter isn't provided, no post-processing code is included. The variable must be modified in-place - the processed value should not be returned. See the README for more information. | ||
boolean | (Optional) If true, find the last script matching the regexVariable (if it is set). If false, find the first matching script. This can be useful if there are multiple scripts loaded in the DOM that match the regexVariable. | ||
string | (Optional) Check for a variable with this name on the page and use its value as a regular expression against script paths to the bundle's script. If a value foo is passed into regexVariable, the produced bundle will look for a variable called foo during initialization, and if a foo variable is found, use its value as a regular expression to detect the bundle's script. See the README for more information. |