Skip to content

Commit 9d2653f

Browse files
update readme
1 parent dba65f7 commit 9d2653f

File tree

1 file changed

+1
-73
lines changed
  • examples/angular/threejs/vite-basic-example

1 file changed

+1
-73
lines changed
Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1 @@
1-
There are some problems with the "fs", "path" and other node type modules with latest angular vite, and there are difference between how serve and build commands work. Use this angular.json to build for production:
2-
Another option is to use optimization: true in development configuration and always use this configuration (but this slows down rebuilds and isn't veyr convenient).
3-
4-
{
5-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
6-
"cli": {
7-
"analytics": "1e1de97b-a744-405a-8b5a-0397bb3d01ce"
8-
},
9-
"newProjectRoot": "projects",
10-
"projects": {
11-
"demo": {
12-
"architect": {
13-
"build": {
14-
"builder": "@angular/build:application",
15-
"configurations": {
16-
"development": {
17-
"extractLicenses": false,
18-
"namedChunks": true,
19-
"optimization": false,
20-
"sourceMap": true
21-
},
22-
"production": {
23-
"aot": true,
24-
"extractLicenses": true,
25-
"namedChunks": false,
26-
"optimization": true,
27-
"outputHashing": "all",
28-
"sourceMap": false
29-
}
30-
},
31-
"options": {
32-
"assets": [],
33-
"index": "src/index.html",
34-
"browser": "src/main.ts",
35-
"outputPath": "dist/demo",
36-
"polyfills": [
37-
"zone.js"
38-
],
39-
"scripts": [],
40-
"styles": [
41-
"src/global_styles.css"
42-
],
43-
"tsConfig": "tsconfig.app.json",
44-
"externalDependencies": [
45-
"fs",
46-
"module",
47-
"path",
48-
"crypto"
49-
]
50-
}
51-
},
52-
"serve": {
53-
"builder": "@angular/build:dev-server",
54-
"configurations": {
55-
"development": {
56-
"buildTarget": "demo:build:development"
57-
},
58-
"production": {
59-
"buildTarget": "demo:build:production"
60-
}
61-
},
62-
"defaultConfiguration": "development"
63-
}
64-
},
65-
"prefix": "app",
66-
"projectType": "application",
67-
"root": "",
68-
"schematics": {},
69-
"sourceRoot": "src"
70-
}
71-
},
72-
"version": 1
73-
}
1+
Angular v20 example using Bitbybit with ThreeJS

0 commit comments

Comments
 (0)