mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	fix electron import
This commit is contained in:
		
							parent
							
								
									d3803fc6f3
								
							
						
					
					
						commit
						c16c528270
					
				| @ -75,7 +75,12 @@ const copy = async () => { | ||||
|     "node_modules/split.js/dist/", | ||||
|     "node_modules/panzoom/dist/", | ||||
|     "node_modules/i18next/", | ||||
|     "node_modules/i18next-http-backend/" | ||||
|     "node_modules/i18next-http-backend/", | ||||
|     "node_modules/jsplumb/dist/", | ||||
|     "node_modules/vanilla-js-wheel-zoom/dist/", | ||||
|     "node_modules/mark.js/dist/", | ||||
|     "node_modules/knockout/build/output/", | ||||
|     "node_modules/normalize.css/" | ||||
|   ]; | ||||
| 
 | ||||
|   for (const folder of nodeModulesFolder) { | ||||
|  | ||||
| @ -70,6 +70,10 @@ function register(app: express.Application) { | ||||
|     app.use(`/${assetPath}/node_modules/split.js/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/split.js/dist/'))); | ||||
| 
 | ||||
|     app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/panzoom/dist/'))); | ||||
|     // i18n
 | ||||
|     app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/'))); | ||||
|     app.use(`/${assetPath}/node_modules/i18next-http-backend/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next-http-backend/'))); | ||||
|     app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/"))); | ||||
| 
 | ||||
|     // Seems work without this, not sure will cause other bugs. Maybe can test without this for a while.
 | ||||
|     // app.use(`/${assetPath}/node_modules/eslint/bin/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/eslint/bin/')));
 | ||||
| @ -86,11 +90,6 @@ function register(app: express.Application) { | ||||
|     app.use(`/${assetPath}/node_modules/knockout/build/output/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/knockout/build/output/'))); | ||||
| 
 | ||||
|     app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(srcRoot, '..', 'node_modules/normalize.css/'))); | ||||
| 
 | ||||
|     // i18n
 | ||||
|     app.use(`/${assetPath}/node_modules/i18next/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next/'))); | ||||
|     app.use(`/${assetPath}/node_modules/i18next-http-backend/`, persistentCacheStatic(path.join(srcRoot, "..", 'node_modules/i18next-http-backend/'))); | ||||
|     app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(srcRoot, "public", "translations/"))); | ||||
| } | ||||
| 
 | ||||
| export default { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jin
						Jin