Claptrap-ui/vite.config.ts

35 lines
712 B
TypeScript
Raw Permalink Normal View History

2022-05-24 23:04:35 +02:00
import vue from "@vitejs/plugin-vue";
import path from "path";
2022-07-04 11:58:21 +02:00
import { defineConfig } from "vite";
import vuetify from "vite-plugin-vuetify";
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
});