class SourceMappingUrlsCompiler implementsAssetCompilerInterface

Rewrites already-existing source map URLs to their final digested path.

Originally sourced from https://github.com/rails/propshaft/blob/main/lib/propshaft/compilers/source_mapping_urls.rb

Constants

SOURCE_MAPPING_PATTERN

Methods

bool
supports(MappedAsset$asset)

No description

string
compile(string$content,MappedAsset$asset,AssetMapperInterface$assetMapper)

Applies any changes to the contents of the asset.

Details

bool supports(MappedAsset$asset)

Parameters

MappedAsset $asset

Return Value

bool

string compile(string$content,MappedAsset$asset,AssetMapperInterface$assetMapper)

Applies any changes to the contents of the asset.

Parameters

string $content
MappedAsset $asset
AssetMapperInterface $assetMapper

Return Value

string