mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-12 10:33:49 +00:00
Add aliases for shlink-web-component and shlink-frontend-kit packages
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user