Electron Fix for 2.0.0 (#304)

- build UI.js to site/ directly (build electron to dist/)
- no longer need to copy favicons
- load site assets directly from site/
This commit is contained in:
Ilya Kreymer
2024-04-09 15:33:43 -07:00
committed by GitHub
parent 00f01222a7
commit 01a6ebc5b6
3 changed files with 13 additions and 21 deletions
+1 -5
View File
@@ -75,10 +75,6 @@ const electronMainConfig = (/*env, argv*/) => {
patterns: [
// { from: "node_modules/classic-level/prebuilds/", to: "prebuilds" },
{ from: "build/extra_prebuilds/", to: "prebuilds" },
{
from: path.resolve(__dirname, "src/assets/favicons"),
to: path.resolve(__dirname, "dist/favicons"),
},
],
}),
],
@@ -140,7 +136,7 @@ const browserConfig = (/*env, argv*/) => {
output: {
path: path.join(__dirname),
filename: "dist/[name].js",
filename: "site/[name].js",
libraryTarget: "self",
globalObject: "self",
publicPath: "/",