inject included styles and preload images into the head
This commit is contained in:
1 parent
0ec085fbbd
commit
8d3c11ef15
5 files changed
+65
-11
No files matched your search
@@ -1,4 +1,5 @@
|
||||
use crate::{cfg::Platform, error::Result};
|
||||
use assets_cli_support::AssetManifest;use crate::{cfg::Platform, error::Result};
|
||||
use assets_cli_support::AssetManifestExt;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
@@ -297,6 +298,13 @@ impl CrateConfig {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn asset_manifest(&self) -> AssetManifest {
|
||||
AssetManifest::load_from_path(
|
||||
self.crate_dir.join("cargo.toml"),
|
||||
self.workspace_dir.join("cargo.lock"),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn as_example(&mut self, example_name: String) -> &mut Self {
|
||||
self.executable = ExecutableType::Example(example_name);
|
||||
self
|
||||
|
||||
Reference in new issue
Block a user