mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +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
|
*.tsbuildinfo
|
||||||
|
|
||||||
/result
|
/result
|
||||||
|
.svelte-kit
|
@ -3,13 +3,22 @@ import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
|||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default () => {
|
||||||
plugins: [
|
// See https://github.com/nrwl/nx/issues/28978.
|
||||||
tailwindcss(),
|
const cwd = process.cwd();
|
||||||
sveltekit(),
|
process.chdir(__dirname); // Temporarily change the working directory
|
||||||
paraglideVitePlugin({
|
|
||||||
project: './project.inlang',
|
const config = defineConfig({
|
||||||
outdir: './src/lib/paraglide'
|
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