mirror of
https://github.com/damp11113-software/ccIDE.git
synced 2025-04-27 06:28:14 +00:00
19 lines
557 B
JavaScript
19 lines
557 B
JavaScript
const path = require("path");
|
|
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
target: "web", // This should target the web environment for the renderer process
|
|
entry: "./src/frontend.js", // Ensure this points to the correct renderer entry
|
|
output: {
|
|
filename: "renderer.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: "src/index.html", // Ensure this injects the renderer script
|
|
}),
|
|
],
|
|
};
|
|
|