vite.config.js 455 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. export default defineConfig({
  4. define: {
  5. 'process.env': {}
  6. },
  7. build: {
  8. lib: {
  9. entry: 'src/vue/index.js',
  10. name: 'BootstrapTable',
  11. fileName: 'bootstrap-table-vue',
  12. formats: ['es', 'umd']
  13. },
  14. rollupOptions: {
  15. output: {
  16. globals: {
  17. vue: 'Vue'
  18. }
  19. }
  20. },
  21. emptyOutDir: false
  22. },
  23. plugins: [vue()]
  24. })