wc
This commit is contained in:
18
quasar/web_components/vite.config.ts
Normal file
18
quasar/web_components/vite.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
vue({
|
||||
customElement: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
lib: {
|
||||
entry: 'src/register.ts',
|
||||
name: 'TrustcontactWebComponents',
|
||||
formats: ['es', 'iife'],
|
||||
fileName: (format) => `trustcontact-web-components.${format}.js`,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user