Add aliases for shlink-web-component and shlink-frontend-kit packages

This commit is contained in:
Alejandro Celaya
2023-08-04 22:59:33 +02:00
parent 9f2b0f7c6b
commit 93048e3327
93 changed files with 215 additions and 143 deletions

View File

@@ -1,4 +1,5 @@
import react from '@vitejs/plugin-react';
import * as path from 'path';
import { VitePWA } from 'vite-plugin-pwa';
import { defineConfig } from 'vitest/config';
import { manifest } from './manifest';
@@ -24,6 +25,12 @@ export default defineConfig({
port: 3000,
},
base: !homepage ? undefined : homepage, // Not using just homepage because empty string should be discarded
resolve: {
alias: {
'@shlinkio/shlink-frontend-kit': path.resolve(__dirname, './shlink-frontend-kit/src'),
'@shlinkio/shlink-web-component': path.resolve(__dirname, './shlink-web-component/src'),
},
},
// Vitest config
test: {