We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56962ff commit 70435a0Copy full SHA for 70435a0
scripts/build.mts
@@ -73,8 +73,10 @@ const contexts = await Promise.all([
73
target: `chrome${CHROME_VERSION}`,
74
outfile: `${distDir}/renderer.js`,
75
format: "esm",
76
+ assetNames: "assets/[hash]",
77
+ publicPath: "replugged://",
78
loader: {
- ".png": "dataurl",
79
+ ".png": "file",
80
},
81
}),
82
]);
src/main/index.ts
@@ -176,6 +176,9 @@ electron.app.once("ready", () => {
176
case "renderer.css":
177
filePath = join(__dirname, "./renderer.css");
178
break;
179
+ case "assets":
180
+ filePath = join(__dirname, reqUrl.hostname, reqUrl.pathname);
181
+ break;
182
case "quickcss":
183
filePath = join(CONFIG_PATHS.quickcss, reqUrl.pathname);
184
0 commit comments