tradeScreen/vite.config.js

19 lines
460 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
server: { // ← ← ← ← ← ←
host: '0.0.0.0' // ← 新增内容 ←
},
resolve:{
//别名配置引用src路径下的东西可以通过@如import Layout from '@/layout/index.vue'
alias: {
'@': path.resolve(__dirname, 'src')
}
}
})