MCSManager/daemon/webpack.config.js

24 lines
483 B
JavaScript
Raw Normal View History

2023-08-20 23:06:38 +08:00
const path = require("path");
const nodeExternals = require("webpack-node-externals");
module.exports = {
mode: "production",
2023-09-05 19:21:23 +08:00
entry: "./dist/daemon/src/app.js",
2023-08-20 23:06:38 +08:00
target: "node",
externalsPresets: { node: true },
2023-12-28 22:19:50 +08:00
externals: [
nodeExternals({
allowlist: ["common"]
})
],
2023-08-20 23:06:38 +08:00
output: {
filename: "app.js",
path: path.resolve(__dirname, "production")
2023-09-05 18:47:10 +08:00
},
resolve: {
alias: {
"@languages": path.resolve(__dirname, "../languages")
}
2023-08-20 23:06:38 +08:00
}
};