Added aliases to the vite.config.js
This commit is contained in:
parent
a5cc4d2349
commit
0133df143e
@ -1,6 +1,14 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite';
|
||||
import path from 'path';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@styles': path.resolve(__dirname, './src/common/styles'),
|
||||
'@components': path.resolve(__dirname, './src/common/components'),
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user