vite.config.ts 569 B

1234567891011121314151617181920212223242526272829
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. base: '',
  7. plugins: [vue()],
  8. css: {
  9. preprocessorOptions: {
  10. scss: {
  11. additionalData: `
  12. @import '@/assets/styles/variable.scss';
  13. @import '@/assets/styles/mixin.scss';
  14. `
  15. }
  16. }
  17. },
  18. resolve: {
  19. alias: {
  20. '@': fileURLToPath(new URL('./src', import.meta.url))
  21. }
  22. },
  23. server: {
  24. port: 9527,
  25. host: '0.0.0.0'
  26. }
  27. })