mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Don't include CSS in live asset mode
This commit is contained in:
parent
7a1eda98ca
commit
07fe963bed
1 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,3 @@
|
||||||
static LOGO: &[u8] = include_bytes!("../../assets/logo-512.png");
|
|
||||||
static ICON: &[u8] = include_bytes!("../../assets/icon-32.png");
|
|
||||||
static HOME_CSS: &str = include_str!("../../assets/index.css");
|
|
||||||
|
|
||||||
macro_rules! declare_asset {
|
macro_rules! declare_asset {
|
||||||
($name: ident, $path: expr) => {
|
($name: ident, $path: expr) => {
|
||||||
pub fn $name() -> &'static str {
|
pub fn $name() -> &'static str {
|
||||||
|
|
@ -29,9 +25,13 @@ macro_rules! declare_asset {
|
||||||
declare_asset!(css, "../../assets/index.css");
|
declare_asset!(css, "../../assets/index.css");
|
||||||
|
|
||||||
pub fn logo() -> &'static [u8] {
|
pub fn logo() -> &'static [u8] {
|
||||||
|
static LOGO: &[u8] = include_bytes!("../../assets/logo-512.png");
|
||||||
|
|
||||||
LOGO
|
LOGO
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn icon() -> &'static [u8] {
|
pub fn icon() -> &'static [u8] {
|
||||||
|
static ICON: &[u8] = include_bytes!("../../assets/icon-32.png");
|
||||||
|
|
||||||
ICON
|
ICON
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue