diff --git a/pagetop-aliner/build.rs b/pagetop-aliner/build.rs index ba1cd204..2f0500aa 100644 --- a/pagetop-aliner/build.rs +++ b/pagetop-aliner/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "aliner", None) + StaticFilesBundle::from_dir("./static") + .with_name("aliner") + .build() } diff --git a/pagetop-bootsier/build.rs b/pagetop-bootsier/build.rs index 43a25bd1..05b11b3c 100644 --- a/pagetop-bootsier/build.rs +++ b/pagetop-bootsier/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "bootsier", None) + StaticFilesBundle::from_dir("./static") + .with_name("bootsier") + .build() } diff --git a/pagetop-bulmix/build.rs b/pagetop-bulmix/build.rs index 60a4c39f..85811cac 100644 --- a/pagetop-bulmix/build.rs +++ b/pagetop-bulmix/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "bulmix", None) + StaticFilesBundle::from_dir("./static") + .with_name("bulmix") + .build() } diff --git a/pagetop-homedemo/build.rs b/pagetop-homedemo/build.rs index c0c4e274..caa0fdf2 100644 --- a/pagetop-homedemo/build.rs +++ b/pagetop-homedemo/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "homedemo", None) + StaticFilesBundle::from_dir("./static") + .with_name("homedemo") + .build() } diff --git a/pagetop-jquery/build.rs b/pagetop-jquery/build.rs index 7ebea757..0acb6bed 100644 --- a/pagetop-jquery/build.rs +++ b/pagetop-jquery/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "jquery", None) + StaticFilesBundle::from_dir("./static") + .with_name("jquery") + .build() } diff --git a/pagetop-megamenu/build.rs b/pagetop-megamenu/build.rs index e981103b..4349cf15 100644 --- a/pagetop-megamenu/build.rs +++ b/pagetop-megamenu/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "megamenu", None) + StaticFilesBundle::from_dir("./static") + .with_name("megamenu") + .build() } diff --git a/pagetop-minimal/build.rs b/pagetop-minimal/build.rs index 4e3488af..cd0bc2b5 100644 --- a/pagetop-minimal/build.rs +++ b/pagetop-minimal/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static", "minimal", None) + StaticFilesBundle::from_dir("./static") + .with_name("minimal") + .build() } diff --git a/pagetop/build.rs b/pagetop/build.rs index b3903037..3e2d9749 100644 --- a/pagetop/build.rs +++ b/pagetop/build.rs @@ -1,3 +1,7 @@ +use pagetop_build::StaticFilesBundle; + fn main() -> std::io::Result<()> { - pagetop_build::bundle_resources("./static/theme", "theme", None) + StaticFilesBundle::from_dir("./static/theme") + .with_name("theme") + .build() }