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 -4
View File
@@ -4,10 +4,7 @@
"*.element.ts": "${capture}.element.scss, ${capture}.element.spec.ts",
"*.tsx": "${capture}.module.scss, ${capture}.spec.tsx",
},
"rust-analyzer.cargo.features": [
"wasm",
"wasm_screenshot"
],
"rust-analyzer.cargo.features": ["wasm"],
"files.associations": {
"*.meta": "ron"
}
+2 -2
View File
@@ -29,7 +29,7 @@
"dependsOn": [
{
"projects": ["studio"],
"target": "build:image-generator"
"target": "build:web"
}
],
"options": {
@@ -52,7 +52,7 @@
"dependsOn": [
{
"projects": ["studio"],
"target": "build:image-generator"
"target": "build:web"
}
],
"options": {
-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::*;