vite.config.js 330 B

123456789101112131415161718
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. export default defineConfig({
  4. plugins: [
  5. vue({
  6. template: {
  7. compilerOptions: {
  8. isCustomElement: (tag) => tag === 'wx-open-launch-weapp',
  9. },
  10. },
  11. }),
  12. ],
  13. server: {
  14. host: '0.0.0.0',
  15. port: 4000,
  16. },
  17. })