fix(core): mime type of .less, .sass and .styl files (#6316)

This commit is contained in:
Lucas Fernandes Nogueira
2023-02-19 11:23:18 -08:00
committed by GitHub
parent 36e4837cea
commit 5fdf8dcb8e
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
Correctly determine mime type of `.less`, `.sass` and `.styl` files.

View File

@@ -49,7 +49,7 @@ impl MimeType {
let suffix = uri.split('.').last();
match suffix {
Some("bin") => Self::OctetStream,
Some("css") => Self::Css,
Some("css" | "less" | "sass" | "styl") => Self::Css,
Some("csv") => Self::Csv,
Some("html") => Self::Html,
Some("ico") => Self::Ico,