From 121becd9cf52c735e2d33032873fca8fc6e3db54 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sun, 5 Nov 2023 22:22:37 +0200 Subject: Added all the main features of the plugin and also added setting and made the plugin respect themeing --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts index caecf1c..a350253 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,4 @@ +import path from "path" import reactPlugin from "@vitejs/plugin-react"; import { defineConfig } from "vite"; import logseqDevPlugin from "vite-plugin-logseq"; @@ -6,8 +7,14 @@ import logseqDevPlugin from "vite-plugin-logseq"; export default defineConfig({ plugins: [logseqDevPlugin(), reactPlugin()], // Makes HMR available for development + resolve: { + alias: { + "@": path.resolve(__dirname, "./src"), + }, + }, build: { target: "esnext", minify: "esbuild", }, }); + -- cgit v1.2.3