vue小程序开发程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
386 B

  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import path from "path";
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. plugins: [vue()],
  7. resolve: {
  8. alias: {
  9. '@':path.resolve(__dirname,'./src')
  10. }
  11. },
  12. server: {
  13. port: 8002,
  14. open:true,
  15. proxy: {
  16. '/api': 'https//api.imooc.zcwytd.com'
  17. },
  18. cors:true
  19. }
  20. })