p2p-explorer-web/vite.config.ts

15 lines
452 B
TypeScript
Raw Normal View History

2025-01-02 03:21:04 +00:00
import { defineConfig } from 'vite'
import basicSsl from '@vitejs/plugin-basic-ssl'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
build: {
// 开发阶段启用源码映射https://uniapp.dcloud.net.cn/tutorial/migration-to-vue3.html#需主动开启-sourcemap
sourcemap: process.env.NODE_ENV === 'development',
},
plugins: [vue(), basicSsl()],
server: {
host: '0.0.0.0',
},
})