mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-29 02:28:57 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			749 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			749 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import tailwindcss from '@tailwindcss/vite';
 | |
| import { paraglideVitePlugin } from '@inlang/paraglide-js';
 | |
| import { sveltekit } from '@sveltejs/kit/vite';
 | |
| import { defineConfig, type Plugin } from 'vite';
 | |
| 
 | |
| export default () => {
 | |
|     // See https://github.com/nrwl/nx/issues/28978.
 | |
|     const cwd = process.cwd();
 | |
|     process.chdir(__dirname); // Temporarily change the working directory
 | |
| 
 | |
|     const config = defineConfig({
 | |
|         plugins: [
 | |
|             tailwindcss(),
 | |
|             sveltekit(),
 | |
|             paraglideVitePlugin({
 | |
|                 project: './project.inlang',
 | |
|                 outdir: './src/lib/paraglide'
 | |
|             })
 | |
|         ] as Plugin[]
 | |
|     });
 | |
| 
 | |
|     process.chdir(cwd); // Restore the original working directory
 | |
|     return config;
 | |
| };
 | 
