mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-27 06:59:54 +08:00
20 lines
439 B
JavaScript
Executable File
20 lines
439 B
JavaScript
Executable File
const path = require("path");
|
|
const nodeExternals = require("webpack-node-externals");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./dist/panel/src/app.js",
|
|
target: "node",
|
|
externalsPresets: { node: true },
|
|
externals: [nodeExternals()],
|
|
output: {
|
|
filename: "app.js",
|
|
path: path.resolve(__dirname, "production")
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@languages": path.resolve(__dirname, "../languages")
|
|
}
|
|
}
|
|
};
|