mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-12-15 07:40:01 +08:00
24 lines
483 B
JavaScript
Executable File
24 lines
483 B
JavaScript
Executable File
const path = require("path");
|
|
const nodeExternals = require("webpack-node-externals");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./dist/daemon/src/app.js",
|
|
target: "node",
|
|
externalsPresets: { node: true },
|
|
externals: [
|
|
nodeExternals({
|
|
allowlist: ["common"]
|
|
})
|
|
],
|
|
output: {
|
|
filename: "app.js",
|
|
path: path.resolve(__dirname, "production")
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@languages": path.resolve(__dirname, "../languages")
|
|
}
|
|
}
|
|
};
|