Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
matmon12 committed Oct 16, 2024
1 parent 7de9316 commit f22c715
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f22c715

Please sign in to comment.