2022-07-17 17:38:51 +08:00
|
|
|
/* eslint-disable no-undef */
|
2022-08-05 16:06:17 +08:00
|
|
|
const path = require("path");
|
|
|
|
const nodeExternals = require("webpack-node-externals");
|
2022-07-17 17:38:51 +08:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
mode: "production",
|
2022-08-05 16:06:17 +08:00
|
|
|
entry: "./dist/app.js",
|
|
|
|
target: "node",
|
|
|
|
externalsPresets: { node: true },
|
|
|
|
externals: [nodeExternals()],
|
2022-07-17 17:38:51 +08:00
|
|
|
output: {
|
2022-08-05 16:06:17 +08:00
|
|
|
filename: "app.js",
|
|
|
|
path: path.resolve(__dirname, "production")
|
|
|
|
}
|
|
|
|
};
|