Crate manganis_core

Crate manganis_core 

Source

Structs§

Asset
A bundled asset with some options. The asset can be used in rsx! to reference the asset. It should not be read directly with std::fs::read because the path needs to be resolved relative to the bundle
AssetOptions
Settings for a generic asset
AssetOptionsBuilder
A builder for AssetOptions
BundledAsset
An asset that should be copied by the bundler with some options. This type will be serialized into the binary. CLIs that support manganis, should pull out the assets from the link section, optimize, and write them to the filesystem at BundledAsset::bundled_path for the application to use.
CssAssetOptions
Options for a css asset
FolderAssetOptions
The builder for a folder asset.
Global
ImageAssetOptions
Options for an image asset
JsAssetOptions
Options for a javascript asset

Enums§

AssetVariant
Settings for a specific type of asset
CssFragment
ImageFormat
The type of an image. You can read more about the tradeoffs between image formats here
ImageSize
The size of an image asset

Functions§

collect_css_identsDeprecated
Collect CSS classes & ids.
create_module_hash
Create a hash for a css module based on the file path
get_class_mappings
Gets all the classes in the css files and their rewritten names. Includes :global(...) classes where the name is not changed.
parse_css
transform_css
Parses and rewrites CSS class selectors with the hash applied. Does not modify :global(...) selectors.