mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Remove .. relative imports and replace with absolute paths
This commit is contained in:
@@ -3,6 +3,7 @@ import { createHtmlPlugin } from "vite-plugin-html";
|
||||
import autoprefixer from "autoprefixer";
|
||||
import electron from "vite-plugin-electron/simple";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "path";
|
||||
|
||||
const plugins: PluginOption[] = [
|
||||
react(),
|
||||
@@ -46,6 +47,11 @@ if (process.env.VITE_ELECTRON) {
|
||||
|
||||
export default defineConfig({
|
||||
plugins: plugins,
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src")
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 8301,
|
||||
|
||||
Reference in New Issue
Block a user