@indexea/widgets
Version:
This is the web components of Indexea, which contains multiple components such as SearchBox, SearchDialog, RecommListBox, etc
23 lines (21 loc) • 499 B
text/typescript
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import sveltePreprocess from 'svelte-preprocess'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
mainFields: ['svelte', 'module', 'main'],
},
build: {
lib: {
entry: "src/main.ts",
name: "@indexea/widgets",
fileName: 'widgets',
},
},
plugins: [
svelte({
emitCss: false,
preprocess: sveltePreprocess({ postcss: true })
})],
})