Fixed subpath and tests for chartjs

This commit is contained in:
Alejandro Celaya
2022-12-25 22:44:43 +01:00
parent 79515ac960
commit c83563c0ea
3 changed files with 4 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';
import { manifest } from './manifest';
import pack from './package.json';
// https://vitejs.dev/config/
export default defineConfig({
@@ -19,4 +20,5 @@ export default defineConfig({
server: {
port: 3000,
},
base: pack.homepage ?? '/',
});