vue-web-component-wrapper
Version:
A Vue 3 plugin that provides a web component wrapper with styles, seamlessly integrating with Vuex, Vue Router, Vue I18n, and supporting Tailwind CSS and Sass styles.
23 lines (22 loc) • 587 B
text/typescript
import { defineConfig } from 'vite'
import path from 'path';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
build: {
lib: {
entry: path.resolve(__dirname, 'index.js'),
name: 'Vue3WebComponentWrapper',
fileName: (format) => `vue-web-component-wrapper.${format}.js`
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue'
},
exports: 'named'
}
}
}
})