Fix build configuration for image-generator-demo

This commit is contained in:
Danny McGee
2024-02-28 15:42:38 -05:00
parent 247069bf5c
commit cc499eec8b
6 changed files with 4 additions and 18 deletions
-1
View File
@@ -67,7 +67,6 @@ wasm = [
"bevy_rapier3d/wasm-bindgen",
]
desktop = []
wasm_screenshot = []
[dependencies.bevy]
workspace = true
-8
View File
@@ -31,14 +31,6 @@
"cwd": "studio"
}
},
"build:image-generator": {
"executor": "nx:run-commands",
"inputs": ["assets"],
"options": {
"command": "node scripts/build-web.mjs --features=wasm,wasm_screenshot",
"cwd": "studio"
}
},
"dev": {
"executor": "@nxrs/cargo:run",
"options": {
+1 -1
View File
@@ -158,7 +158,7 @@ pub fn start(init: InitParams, mode: StudioMode, window_config: Option<Window>)
..default()
}),
CommonPlugins,
#[cfg(all(feature = "wasm", feature = "wasm_screenshot"))]
#[cfg(feature = "wasm")]
wasm::ScreenshotPlugin,
));
-2
View File
@@ -5,12 +5,10 @@ use wasm_bindgen::prelude::wasm_bindgen;
mod conv;
mod init;
#[cfg(feature = "wasm_screenshot")]
mod screenshot;
mod util;
pub use conv::*;
#[cfg(feature = "wasm_screenshot")]
pub use screenshot::ScreenshotPlugin;
pub(crate) use util::*;