1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import { defineConfig } from "vite";
- import vue from "@vitejs/plugin-vue";
- import tailwindcss from 'tailwindcss';
- import autoprefixer from 'autoprefixer';
- import path from 'path';
- import Icons from "unplugin-icons/vite";
- import IconsResolver from 'unplugin-icons/resolver';
- import Components from 'unplugin-vue-components/vite';
- const host = process.env.TAURI_DEV_HOST;
- export default defineConfig(async () => ({
- plugins: [
- vue(),
- Icons({ compiler: 'vue3' }),
- Components({
- resolvers: [
- IconsResolver({
- prefix: ''
- })
- ]
- })
- ],
- css: {
- postcss: {
- plugins: [
- tailwindcss,
- autoprefixer,
- ],
- },
- },
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src')
- }
- },
-
-
-
- clearScreen: false,
-
- server: {
- port: 1420,
- strictPort: true,
- host: host || false,
- hmr: host
- ? {
- protocol: "ws",
- host,
- port: 1421,
- }
- : undefined,
- watch: {
-
- ignored: ["**/src-tauri/**"],
- },
- },
- }));
|