mirror of
https://github.com/damp11113-software/ccIDE.git
synced 2025-04-27 06:28:14 +00:00
24 lines
741 B
JavaScript
24 lines
741 B
JavaScript
const path = require("path");
|
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
const nodeExternals = require("webpack-node-externals");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
target: "electron-main", // For Electron main process
|
|
entry: "./src/index.js", // Adjust based on your main entry file
|
|
output: {
|
|
filename: "main.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
},
|
|
externals: [nodeExternals()], // Exclude node_modules
|
|
plugins: [
|
|
new CopyWebpackPlugin({
|
|
patterns: [
|
|
{ from: "assets", to: "assets" },
|
|
{ from: "blocks", to: "blocks" },
|
|
{ from: "src/styles.css", to: "styles.css" },
|
|
],
|
|
}),
|
|
],
|
|
};
|