MCSManager/panel/webpack.config.js

20 lines
439 B
JavaScript
Raw Normal View History

2022-08-05 16:10:27 +08:00
const path = require("path");
const nodeExternals = require("webpack-node-externals");
2022-07-17 17:38:50 +08:00
module.exports = {
mode: "production",
2023-09-05 19:21:23 +08:00
entry: "./dist/panel/src/app.js",
2022-08-05 16:10:27 +08:00
target: "node",
2023-09-05 19:21:23 +08:00
externalsPresets: { node: true },
externals: [nodeExternals()],
2022-07-17 17:38:50 +08:00
output: {
2022-08-05 16:10:27 +08:00
filename: "app.js",
path: path.resolve(__dirname, "production")
2023-09-05 19:21:23 +08:00
},
resolve: {
alias: {
"@languages": path.resolve(__dirname, "../languages")
}
2022-08-05 16:10:27 +08:00
}
};