Skip to content

Commit

Permalink
add solid-devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
brw committed Oct 29, 2024
1 parent cd9d337 commit f959aab
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 4 deletions.
14 changes: 13 additions & 1 deletion electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import { resolve } from "path";
import lucidePreprocess from "vite-plugin-lucide-preprocess";
import solid from "vite-plugin-solid";
import devtools from "solid-devtools/vite";

export default defineConfig({
main: {
Expand All @@ -16,6 +17,17 @@ export default defineConfig({
"@renderer": resolve("src/renderer/src"),
},
},
plugins: [lucidePreprocess(), solid()],
plugins: [
lucidePreprocess(),
devtools({
autoname: true,
locator: {
targetIDE: "vscode", // can also be "webstorm"
componentLocation: true,
jsxLocation: true,
},
}),
solid(),
],
},
});
Loading

0 comments on commit f959aab

Please sign in to comment.