Skip to content

Commit

Permalink
fix stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
KAJdev committed Jul 22, 2023
1 parent 110c8dc commit 8bb4232
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/stablestudio-ui/src-tauri/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ impl Builder {
) = match sliced_path {
["lib" | "scripts", ..] => (
Some(sliced_path.clone().join("/")),
Some("application/javascript".to_string()),
Some(if sliced_path.last().unwrap().ends_with(".js") {
"text/javascript".to_string()
} else {
"text/css".to_string()
}),
None,
),
["style.css"] => (
Expand Down

0 comments on commit 8bb4232

Please sign in to comment.