Skip to content

Commit 5fdf8dc

Browse files
authored
fix(core): mime type of .less, .sass and .styl files (#6316)
1 parent 36e4837 commit 5fdf8dc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": patch
3+
---
4+
5+
Correctly determine mime type of `.less`, `.sass` and `.styl` files.

‎core/tauri-utils/src/mime_type.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl MimeType {
4949
let suffix = uri.split('.').last();
5050
match suffix {
5151
Some("bin") => Self::OctetStream,
52-
Some("css") => Self::Css,
52+
Some("css" | "less" | "sass" | "styl") => Self::Css,
5353
Some("csv") => Self::Csv,
5454
Some("html") => Self::Html,
5555
Some("ico") => Self::Ico,

0 commit comments

Comments
 (0)