Skip to main content
Version: 2x

Function: getAssetExtensionsRegExp

getAssetExtensionsRegExp(extensions): RegExp

Creates RegExp from array of asset extensions.

Parameters

NameTypeDescription
extensionsstring[]Extensions array.

Returns

RegExp

RegExp with extensions.

Defined in

packages/repack/src/webpack/utils/assetExtensions.ts:51