mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(nx/server): switch to module
This commit is contained in:
		
							
								
								
									
										20
									
								
								apps/server/webpack.config.cjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								apps/server/webpack.config.cjs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin'); | ||||
| const { join } = require('path'); | ||||
|  | ||||
| module.exports = { | ||||
|   output: { | ||||
|     path: join(__dirname, 'dist'), | ||||
|   }, | ||||
|   plugins: [ | ||||
|     new NxAppWebpackPlugin({ | ||||
|       target: 'node', | ||||
|       compiler: 'tsc', | ||||
|       main: './src/main.ts', | ||||
|       tsConfig: './tsconfig.app.json', | ||||
|       assets: ["./src/assets"], | ||||
|       optimization: false, | ||||
|       outputHashing: 'none', | ||||
|       generatePackageJson: true, | ||||
|     }) | ||||
|   ], | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user