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.

23 lines
411 B

1 year ago
1 year ago
1 year ago
  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. server: {
  8. port: 8002,
  9. host: '0.0.0.0',
  10. open:true,
  11. proxy: {
  12. '/api': 'https://api.imooc.zcwytd.com'
  13. },
  14. cors:true
  15. },
  16. resolve: {
  17. alias: {
  18. '@':path.resolve(__dirname,'./src')
  19. }
  20. },
  21. })