DioxusLabs/manganis

Folder support for manganis

ealmloff opened this issue · 0 comments

Specific Demand

Manganis should support folders of assets. The whole folder should be copied and optimized at once without changing the internal structure of the folder.

Implement Suggestion

Usage:

const FOLDER_LOCATION: &str = manganis::mg!("./path/to/folder");

let asset = FOLDER_LOCATION.to_string() + "/my-asset-path";

Expansion:

const FOLDER_LOCATION: &str = "{BASE_PATH}path132142";