base.config.js 420 B

1234567891011121314151617181920
  1. import { defineConfig } from 'vite';
  2. import Vue from '@vitejs/plugin-vue';
  3. import Markdown from 'vite-plugin-md';
  4. import { resolve } from "path";
  5. // https://vitejs.dev/config/
  6. export default defineConfig({
  7. plugins: [
  8. Vue({
  9. include: [/\.vue$/, /\.md$/],
  10. }),
  11. Markdown()
  12. ],
  13. resolve: {
  14. alias: {
  15. "@": resolve(__dirname, "../src"),
  16. "~": resolve(__dirname, "../packages")
  17. }
  18. },
  19. })