mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(core): mime type of .less, .sass and .styl files (#6316)
This commit is contained in:
committed by
GitHub
parent
36e4837cea
commit
5fdf8dcb8e
5
.changes/css-preprocessor-mime-type.md
Normal file
5
.changes/css-preprocessor-mime-type.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-utils": patch
|
||||
---
|
||||
|
||||
Correctly determine mime type of `.less`, `.sass` and `.styl` files.
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user