mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
initial commit
This commit is contained in:
22
vendor/texthooker-ui/vite.lib.config.ts
vendored
Normal file
22
vendor/texthooker-ui/vite.lib.config.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
import { setDefaultResultOrder } from 'dns';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
const nodeVersion = Number.parseInt(process.versions.node.match(/^(\d+)\./)?.[1] || '17', 10);
|
||||
|
||||
if (nodeVersion < 17) {
|
||||
setDefaultResultOrder('verbatim');
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
base: '',
|
||||
build: {
|
||||
emptyOutDir: true,
|
||||
lib: { name: 'texthooker', entry: './src/main.ts', formats: ['iife'] },
|
||||
outDir: './texthooker-ui',
|
||||
},
|
||||
server: {
|
||||
port: 5174,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user