Añade tema Bootiser basado en Bootstrap

This commit is contained in:
Manuel Cillero 2025-10-12 12:07:02 +02:00
parent ebf1828ea3
commit c1ba4ac7ea
115 changed files with 15682 additions and 4 deletions

View file

@ -0,0 +1,22 @@
use pagetop_build::StaticFilesBundle;
use std::env;
use std::path::Path;
fn main() -> std::io::Result<()> {
StaticFilesBundle::from_scss(
"./static/bootstrap-5.3.3/bootstrap.scss",
"bootstrap.min.css",
)
.with_name("bootsier")
.build()?;
StaticFilesBundle::from_dir("./static/js", Some(bootstrap_js_files))
.with_name("bootsier_js")
.build()
}
fn bootstrap_js_files(path: &Path) -> bool {
// No filtering during development, only on "release" compilation.
env::var("PROFILE").unwrap_or_else(|_| "release".to_string()) != "release"
|| path.file_name().map_or(false, |n| n == "bootstrap.min.js")
}