mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
js bundle
This commit is contained in:
parent
305e8ec8ed
commit
d0c1045550
7 changed files with 223 additions and 36 deletions
|
|
@ -47,6 +47,8 @@ pub const fn guess_mime(path: &'static str) -> &'static str {
|
|||
return "image/png";
|
||||
} else if ends_with!(path, "css") {
|
||||
return "text/css";
|
||||
} else if ends_with!(path, "js") {
|
||||
return "text/javascript";
|
||||
}
|
||||
return "text/plain";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ impl Page for UploadPage {
|
|||
}
|
||||
(self.plugin_section())
|
||||
}
|
||||
script src = (script);
|
||||
script src = (script) type = "text/javascript" {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue