24 lines
582 B
TypeScript
24 lines
582 B
TypeScript
import { defineConfig } from 'vite'
|
|
import path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
// Alias @ to the src directory
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
|
|
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
|
|
assetsInclude: ['**/*.svg', '**/*.csv'],
|
|
})
|