Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
89 lines
2.0 KiB
TypeScript
89 lines
2.0 KiB
TypeScript
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import icons from 'unplugin-icons/vite';
|
|
import svgLoader from 'vite-svg-loader';
|
|
import path from 'path';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
icons({
|
|
compiler: 'vue3',
|
|
autoInstall: true,
|
|
}),
|
|
svgLoader({
|
|
svgoConfig: {
|
|
plugins: [
|
|
{
|
|
name: 'preset-default',
|
|
params: {
|
|
overrides: {
|
|
cleanupIds: false,
|
|
removeViewBox: false,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: /^@n8n\/design-system$/,
|
|
replacement: path.resolve(__dirname, '../design-system/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/design-system\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../design-system/src/$1'),
|
|
},
|
|
{
|
|
find: /^@n8n\/chat$/,
|
|
replacement: path.resolve(__dirname, '../chat/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/chat\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../chat/src/$1'),
|
|
},
|
|
// Editor-UI aliases
|
|
{
|
|
find: /^@\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../../editor-ui/src/$1'),
|
|
},
|
|
{
|
|
find: /^@n8n\/i18n$/,
|
|
replacement: path.resolve(__dirname, '../i18n/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/i18n\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../i18n/src/$1'),
|
|
},
|
|
{
|
|
find: /^@n8n\/stores$/,
|
|
replacement: path.resolve(__dirname, '../stores/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/stores\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../stores/src/$1'),
|
|
},
|
|
{
|
|
find: /^@n8n\/composables$/,
|
|
replacement: path.resolve(__dirname, '../composables/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/composables\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../composables/src/$1'),
|
|
},
|
|
{
|
|
find: /^@n8n\/utils$/,
|
|
replacement: path.resolve(__dirname, '../../../@n8n/utils/src/index.ts'),
|
|
},
|
|
{
|
|
find: /^@n8n\/utils\/(.*)$/,
|
|
replacement: path.resolve(__dirname, '../../../@n8n/utils/src/$1'),
|
|
},
|
|
],
|
|
},
|
|
});
|