ViteMapper
class ViteMapper implements Mapper
Maps asset references to Vite-generated files using a Vite manifest.json.
Supports both development mode (Vite dev server) and production mode.
Methods
__construct(string $baseUrl, string $basePath, string|null $manifestPath = null, string|null $devServer = null, Mapper|null $publicMapper = null)
No description
getAsset(string $reference, array $options = [])
Retrieves an Asset for a given Vite entry point.
string
getBaseUrl()
Returns the base URL for this mapper.
string
getBasePath()
Returns the base path for this mapper.
Details
at line 22
__construct(string $baseUrl, string $basePath, string|null $manifestPath = null, string|null $devServer = null, Mapper|null $publicMapper = null)
No description
at line 39
Asset
getAsset(string $reference, array $options = [])
Retrieves an Asset for a given Vite entry point.
at line 150
string
getBaseUrl()
Returns the base URL for this mapper.
at line 159
string
getBasePath()
Returns the base path for this mapper.