mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added build config
This commit is contained in:
parent
bd844f7be8
commit
8cbd891993
@ -41,29 +41,25 @@ module.exports = (config = {}) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// config.build = {
|
config.build = {
|
||||||
// sourcemap: "inline",
|
sourcemap: "inline",
|
||||||
// target: `node16`,
|
target: `node16`,
|
||||||
// outDir: "dist",
|
outDir: "dist",
|
||||||
// assetsDir: ".",
|
assetsDir: ".",
|
||||||
// minify: process.env.MODE !== "development",
|
minify: process.env.MODE !== "development",
|
||||||
// lib: {
|
rollupOptions: {
|
||||||
// entry: "src/App.jsx",
|
external: [
|
||||||
// formats: ["cjs"],
|
"electron",
|
||||||
// },
|
"electron-devtools-installer",
|
||||||
// rollupOptions: {
|
...builtinModules.flatMap(p => [p, `node:16`]),
|
||||||
// external: [
|
],
|
||||||
// "electron",
|
output: {
|
||||||
// "electron-devtools-installer",
|
entryFileNames: "[name].js",
|
||||||
// ...builtinModules.flatMap(p => [p, `node:16`]),
|
},
|
||||||
// ],
|
},
|
||||||
// output: {
|
emptyOutDir: true,
|
||||||
// entryFileNames: "[name].cjs",
|
brotliSize: false,
|
||||||
// },
|
}
|
||||||
// },
|
|
||||||
// emptyOutDir: true,
|
|
||||||
// brotliSize: false,
|
|
||||||
// }
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user