mackenzii/projects/frontend/vite.config.ts

20 lines
436 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue({
template: {
preprocessOptions: {
basedir: path.resolve(__dirname, './')
},
}
})],
resolve: {
alias: {
'content': path.resolve(__dirname, './content'),
'src': path.resolve(__dirname, './src'),
},
},
})