Home > @rushstack/set-webpack-public-path-plugin > ISetWebpackPublicPathOptions > preferLastFoundScript
ISetWebpackPublicPathOptions.preferLastFoundScript property
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.
Signature:
preferLastFoundScript?: boolean;