✨ Añade tema Bootiser basado en Bootstrap
This commit is contained in:
parent
ebf1828ea3
commit
c1ba4ac7ea
115 changed files with 15682 additions and 4 deletions
22
extensions/pagetop-bootsier/build.rs
Normal file
22
extensions/pagetop-bootsier/build.rs
Normal 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")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue