Crate manganis_common

Crate manganis_common 

Source
Expand description

Common types and methods for the manganis asset system

Modules§

cache
Utilities for the cache that is used to collect assets

Structs§

AssetManifest
A manifest of all assets collected from dependencies
Config
The configuration for collecting assets
CssOptions
The options for a css asset
FileAsset
A file asset
FileLocation
The location of an asset before and after it is collected
FontOptions
The options for a font asset
ImageOptions
The options for an image asset
MetadataAsset
A metadata asset
PackageAssets
All assets collected from a specific package
TailwindAsset
A tailwind class asset
UnknownFileOptions
The options for an unknown file asset
VideoOptions
The options for a video asset

Enums§

AssetType
The type of asset
FileOptions
The options for a file asset
FileSource
The source of a file asset
FontType
The type of a font
ImageType
The type of an image
VideoType
The type of a video

Functions§

add_asset
Adds an asset to the current package
clear_assets
Clears all assets from the current package
get_mime_from_ext
Get the mime type from a URI using its extension