Get wasm build running in browser

This commit is contained in:
Danny McGee
2023-09-28 23:33:08 -04:00
parent 842f985c23
commit bc8994a780
28 changed files with 3832 additions and 131 deletions
+59
View File
@@ -0,0 +1,59 @@
{
"name": "hello-web",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "hello-web/src",
"tags": [],
"targets": {
"build": {
"executor": "@nx/vite:build",
"outputs": [
"{options.outputPath}"
],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/hello-web"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"serve": {
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "hello-web:build"
},
"configurations": {
"development": {
"buildTarget": "hello-web:build:development",
"hmr": true
},
"production": {
"buildTarget": "hello-web:build:production",
"hmr": false
}
}
},
"preview": {
"executor": "@nx/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "hello-web:build"
},
"configurations": {
"development": {
"buildTarget": "hello-web:build:development"
},
"production": {
"buildTarget": "hello-web:build:production"
}
}
}
}
}