vite.config.ts 462 B

1234567891011121314151617181920
  1. import { defineConfig } from 'vite'
  2. import Vue from '@vitejs/plugin-vue'
  3. import * as CompilerSFC from 'vue/compiler-sfc'
  4. import { resolve } from 'node:path'
  5. export default defineConfig({
  6. plugins: [
  7. Vue({
  8. compiler: CompilerSFC,
  9. }),
  10. ],
  11. build: {
  12. rollupOptions: {
  13. input: {
  14. interop: resolve(import.meta.dirname, 'interop/index.html'),
  15. todomvc: resolve(import.meta.dirname, 'todomvc/index.html'),
  16. },
  17. },
  18. },
  19. })