mirror of
https://github.com/zadam/trilium.git
synced 2025-10-06 05:25:37 +08:00
chore(client,website): bypass issue with plugins
This commit is contained in:
parent
087e755390
commit
5d3c1e3fec
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
/// <reference types='vitest' />
|
/// <reference types='vitest' />
|
||||||
import { join, resolve } from 'path';
|
import { join, resolve } from 'path';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig, type Plugin } from 'vite';
|
||||||
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
||||||
import asset_path from './src/asset_path';
|
import asset_path from './src/asset_path';
|
||||||
import webpackStatsPlugin from 'rollup-plugin-webpack-stats';
|
import webpackStatsPlugin from 'rollup-plugin-webpack-stats';
|
||||||
|
@ -36,7 +36,7 @@ export default defineConfig(() => ({
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
webpackStatsPlugin()
|
webpackStatsPlugin()
|
||||||
],
|
] as Plugin[],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: [
|
alias: [
|
||||||
// Force the use of dist in development mode because upstream ESM is broken (some hybrid between CJS and ESM, will be improved in upcoming versions).
|
// Force the use of dist in development mode because upstream ESM is broken (some hybrid between CJS and ESM, will be improved in upcoming versions).
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
import { paraglideVitePlugin } from '@inlang/paraglide-js';
|
||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig, type Plugin } from 'vite';
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
// See https://github.com/nrwl/nx/issues/28978.
|
// See https://github.com/nrwl/nx/issues/28978.
|
||||||
|
@ -16,7 +16,7 @@ export default () => {
|
||||||
project: './project.inlang',
|
project: './project.inlang',
|
||||||
outdir: './src/lib/paraglide'
|
outdir: './src/lib/paraglide'
|
||||||
})
|
})
|
||||||
]
|
] as Plugin[]
|
||||||
});
|
});
|
||||||
|
|
||||||
process.chdir(cwd); // Restore the original working directory
|
process.chdir(cwd); // Restore the original working directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue