mimeLookup method
- String filename
Normalize the path
Lookup the mime-type of a filename
Implementation
// String pathNormalize(String basePath) => pathLib.normalize(basePath);
///
/// Lookup the mime-type of a [filename]
///
String mimeLookup(String filename) {
final type = mime_lib.lookupMimeType(filename);
if (type == null) {
final ext = path_lib.extension(filename);
throw LessExceptionError(LessError(
message: 'Optional dependency "mime" is required for $ext'));
}
return type;
}