fix(vite): use base path

This commit is contained in:
Elian Doran
2025-05-19 19:51:33 +03:00
parent 6286c39381
commit e536ec4cbf
3 changed files with 4 additions and 3 deletions

View File

@@ -2,12 +2,14 @@
import { join } from 'path';
import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy'
import asset_path from './src/asset_path';
const assets = [ "assets", "stylesheets", "libraries", "fonts", "translations" ];
export default defineConfig(() => ({
root: __dirname,
cacheDir: '../../node_modules/.vite/apps/client',
base: "/" + asset_path,
server: {
port: 4200,
host: 'localhost',