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:
+1
-5
@@ -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: "/",
|
||||
|
||||
Reference in New Issue
Block a user