mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
add path aliasing
This commit is contained in:
parent
5eb523bdf2
commit
4dfc7ce732
@ -17,7 +17,12 @@
|
||||
"skipLibCheck": true,
|
||||
"types": [
|
||||
"vitest/globals",
|
||||
]
|
||||
],
|
||||
"allowJs": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
|
@ -1,15 +1,21 @@
|
||||
/// <reference types="vitest/config" />
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
base: "./",
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src')
|
||||
},
|
||||
},
|
||||
build: {
|
||||
target: [
|
||||
"chrome87", "edge88", "firefox78", "safari14"
|
||||
]
|
||||
],
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user