From f22c7150dd6379352e1b85436b600ba8071bfc9c Mon Sep 17 00:00:00 2001 From: Matvey Date: Wed, 16 Oct 2024 20:22:20 +0300 Subject: [PATCH] deploy --- public/404.html => 404.html | 0 vite.config.js | 9 +++++++++ 2 files changed, 9 insertions(+) rename public/404.html => 404.html (100%) diff --git a/public/404.html b/404.html similarity index 100% rename from public/404.html rename to 404.html diff --git a/vite.config.js b/vite.config.js index 6f65b30..770e900 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,10 +7,19 @@ import Components from "unplugin-vue-components/vite"; import AutoImport from "unplugin-auto-import/vite"; import IconsResolver from "unplugin-icons/resolver"; import { PrimeVueResolver } from "unplugin-vue-components/resolvers"; +import { resolve } from "node:path"; // https://vitejs.dev/config/ export default defineConfig({ base: process.env.NODE_ENV === "production" ? "/forecast/" : "/", + build: { + rollupOptions: { + input: { + main: resolve(__dirname, 'index.html'), + error: resolve(__dirname, '404.html') + } + } + }, plugins: [ vue(), ViteImageOptimizer({