Skip to content

Commit

Permalink
fix: make the base path relative
Browse files Browse the repository at this point in the history
Adjusts Vite configuration to set the base path to `./` in order to accommodate the deployment
on GitHub Pages. The demo is served under `/pillarbox-web-demo` instead of the root path, using
relative paths in the generated build ensures proper page serving.

Other changes: Adds map source generation.
  • Loading branch information
jboix committed Feb 5, 2024
1 parent 887d077 commit b30dbc8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from 'vite';

/**
* Vite configuration file.
*
* @see https://vitejs.dev/config/
*/
export default defineConfig({
base: './',
build: {
sourcemap: true
}
});

0 comments on commit b30dbc8

Please sign in to comment.