mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(server/esbuild): assets not copied in prod build
This commit is contained in:
		| @@ -1,2 +1,6 @@ | |||||||
| _regroup | _regroup | ||||||
| _regroup_monorepo | _regroup_monorepo | ||||||
|  |  | ||||||
|  | # Asset copying respects .gitignore / .nxignore for some reason. | ||||||
|  | # See https://github.com/nrwl/nx/issues/20309  | ||||||
|  | !dist | ||||||
| @@ -188,13 +188,6 @@ | |||||||
|           "outputFileName": "main.js", |           "outputFileName": "main.js", | ||||||
|           "tsConfig": "apps/server/tsconfig.app.json", |           "tsConfig": "apps/server/tsconfig.app.json", | ||||||
|           "platform": "node", |           "platform": "node", | ||||||
|           "assets": [ |  | ||||||
|             { |  | ||||||
|               "glob": "**/*", |  | ||||||
|               "input": "apps/server/src/assets", |  | ||||||
|               "output": "assets" |  | ||||||
|             } |  | ||||||
|           ], |  | ||||||
|           "format": [ |           "format": [ | ||||||
|             "esm" |             "esm" | ||||||
|           ], |           ], | ||||||
| @@ -202,10 +195,29 @@ | |||||||
|         }, |         }, | ||||||
|         "configurations": { |         "configurations": { | ||||||
|           "development": { |           "development": { | ||||||
|             "minify": false |             "minify": false, | ||||||
|  |             "assets": [ | ||||||
|  |               { | ||||||
|  |                 "glob": "**/*", | ||||||
|  |                 "input": "apps/server/src/assets", | ||||||
|  |                 "output": "assets" | ||||||
|  |               } | ||||||
|  |             ] | ||||||
|           }, |           }, | ||||||
|           "production": { |           "production": { | ||||||
|             "minify": true |             "minify": true, | ||||||
|  |             "assets": [ | ||||||
|  |               { | ||||||
|  |                 "glob": "**/*", | ||||||
|  |                 "input": "apps/server/src/assets", | ||||||
|  |                 "output": "assets" | ||||||
|  |               }, | ||||||
|  |               { | ||||||
|  |                 "glob": "**/*", | ||||||
|  |                 "input": "apps/client/dist", | ||||||
|  |                 "output": "public" | ||||||
|  |               } | ||||||
|  |             ] | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user