mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-27 03:22:55 +00:00
28 lines
598 B
TypeScript
28 lines
598 B
TypeScript
import { resolve } from 'node:path'
|
|
|
|
import { sveltekit } from '@sveltejs/kit/vite'
|
|
import license from 'rollup-plugin-license'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
license({
|
|
thirdParty: {
|
|
allow: '(MIT OR Apache-2.0 OR ISC OR BSD-3-Clause OR BSD-2-Clause)',
|
|
output: resolve(__dirname, './build/LICENSE.txt'),
|
|
includeSelf: true
|
|
}
|
|
})
|
|
],
|
|
server: { port: 7344 },
|
|
build: {
|
|
target: 'esnext'
|
|
},
|
|
ssr: {
|
|
target: 'webworker'
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ['anitomyscript']
|
|
}
|
|
})
|