|
|
|
@ -1,9 +1,10 @@
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
|
import path from "path";
|
|
|
|
import path from "path";
|
|
|
|
import assetPath from "./src/services/asset_path.js";
|
|
|
|
import assetPath from "./src/services/asset_path.js";
|
|
|
|
|
|
|
|
import type { Configuration } from "webpack";
|
|
|
|
|
|
|
|
|
|
|
|
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default {
|
|
|
|
const config: Configuration = {
|
|
|
|
mode: "production",
|
|
|
|
mode: "production",
|
|
|
|
entry: {
|
|
|
|
entry: {
|
|
|
|
setup: "./src/public/app/setup.js",
|
|
|
|
setup: "./src/public/app/setup.js",
|
|
|
|
@ -42,3 +43,5 @@ export default {
|
|
|
|
devtool: "source-map",
|
|
|
|
devtool: "source-map",
|
|
|
|
target: "electron-renderer"
|
|
|
|
target: "electron-renderer"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default config;
|