🚧 Incopora recursos estáticos con "use_static!()"
This commit is contained in:
parent
32d068065e
commit
bcf403ab50
10 changed files with 35 additions and 21 deletions
|
|
@ -3,7 +3,7 @@ use pagetop_minimal::component::*;
|
|||
|
||||
use_handle!(THEME_BULMIX);
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/bulmix.rs"));
|
||||
use_static!(bulmix);
|
||||
|
||||
pub struct Bulmix;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ impl ModuleTrait for Bulmix {
|
|||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut service::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/bulmix", bundle_bulmix);
|
||||
serve_static_files!(cfg, "/bulmix", bulmix);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue