mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Fix build configuration for image-generator-demo
This commit is contained in:
Vendored
+1
-4
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -67,7 +67,6 @@ wasm = [
|
||||
"bevy_rapier3d/wasm-bindgen",
|
||||
]
|
||||
desktop = []
|
||||
wasm_screenshot = []
|
||||
|
||||
[dependencies.bevy]
|
||||
workspace = true
|
||||
|
||||
@@ -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
@@ -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,
|
||||
));
|
||||
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user