From 01f28b860d340313c335780c0bcd8d6bafc94a3e Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Sun, 30 Jul 2023 22:34:10 +0200 Subject: [PATCH] - update vite config --- vite.config.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/vite.config.js b/vite.config.js index c9332f3..2a8633d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,25 +1,15 @@ import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite'; import vue from '@vitejs/plugin-vue'; -import { networkInterfaces } from 'os'; -// https://vitejs.dev/config/ export default defineConfig((mode) => { const env = loadEnv(mode, process.cwd(), ""); return { server: { - //host: Object.values(networkInterfaces()).flat().find(i => i.family === 'IPv4' && !i.internal).address, - host: 'localhost', port: parseInt(env.VITE_PORT ?? 5173), - hmr: { - host: 'localhost', - }, }, plugins: [ vue(), splitVendorChunkPlugin() ], resolve: { vue: 'vue/dist/vue.esm-bundler.js', }, - build: { - chunkSizeWarningLimit: 2048, - }, }; });