mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(nx): configure for SvelteKit
This commit is contained in:
parent
6416c6b947
commit
296c95e800
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,3 +52,4 @@ upload
|
||||
*.tsbuildinfo
|
||||
|
||||
/result
|
||||
.svelte-kit
|
@ -3,13 +3,22 @@ import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
tailwindcss(),
|
||||
sveltekit(),
|
||||
paraglideVitePlugin({
|
||||
project: './project.inlang',
|
||||
outdir: './src/lib/paraglide'
|
||||
})
|
||||
]
|
||||
});
|
||||
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'
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
process.chdir(cwd); // Restore the original working directory
|
||||
return config;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user