Use target web

This commit is contained in:
Dennis Kobert 2023-03-04 12:00:45 +01:00 committed by Keavon Chambers
parent e6a97fae63
commit 8e836d3043

View file

@ -5,12 +5,12 @@
"author": "Graphite Authors <contact@graphite.rs>",
"scripts": {
"start": "npm run dev",
"dev": "wasm-pack build ./wasm --dev && concurrently -k --handle-input \"vite\" \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
"dev": "wasm-pack build ./wasm --dev --target web && concurrently -k --handle-input \"vite\" \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
"tauri:dev": "vite",
"build": "npm run build-wasm && vite build || (npm run print-building-help && exit 1)",
"lint": "eslint src || (npm run print-linting-help && exit 1)",
"build-wasm": "wasm-pack build ./wasm --release",
"watch:wasm": "cargo watch --postpone -C wasm -s \"wasm-pack build . --dev\"",
"build-wasm": "wasm-pack build ./wasm --release --target web",
"watch:wasm": "cargo watch --postpone -C wasm -s \"wasm-pack build . --dev --target web\"",
"preview": "vite preview",
"--------------------": "",
"print-building-help": "echo 'Graphite project failed to build. Did you remember to `npm install` the dependencies in `/frontend`?'",