Claptrap-ui/vite.config.ts

35 lines
713 B
TypeScript
Raw Normal View History

2022-05-24 23:04:35 +02:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vuetify from "@vuetify/vite-plugin";
import path from "path";
2022-05-21 01:07:31 +02:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
vuetify({
autoImport: true,
}),
],
2022-05-24 23:04:35 +02:00
define: { "process.env": {} },
2022-05-21 01:07:31 +02:00
resolve: {
alias: {
2022-05-24 23:04:35 +02:00
"@": path.resolve(__dirname, "src"),
2022-05-21 01:07:31 +02:00
},
},
/* remove the need to specify .vue files https://vitejs.dev/config/#resolve-extensions
resolve: {
extensions: [
'.js',
'.json',
'.jsx',
'.mjs',
'.ts',
'.tsx',
'.vue',
]
},
*/
2022-05-24 23:04:35 +02:00
});