Skip to content

Commit

Permalink
Merge pull request #3 from Parthipan-Natkunam/fix/build-base-path
Browse files Browse the repository at this point in the history
fix: add base path to vite config
  • Loading branch information
Parthipan-Natkunam authored Dec 9, 2024
2 parents 80e89f7 + 1e60454 commit 5b45351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "rm -rf dist && vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json"
},
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

export default defineConfig({
base: './',
plugins: [svelte({
configFile: 'svelte.config.js'
})],
Expand Down

0 comments on commit 5b45351

Please sign in to comment.