Rebuilt the network view in Svelte
This commit is contained in:
19
src/svelte-components/vite.config.ts
Normal file
19
src/svelte-components/vite.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import { resolve } from 'path';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
svelte()
|
||||
],
|
||||
build: {
|
||||
target: "chrome60",
|
||||
lib: {
|
||||
entry: resolve(__dirname, 'src/main.ts'),
|
||||
name: 'SvelteComponents',
|
||||
formats: ['iife'],
|
||||
fileName: () => "index.js"
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user