mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-12-27 07:59:08 +08:00
18 lines
541 B
JavaScript
Executable File
18 lines
541 B
JavaScript
Executable File
// Copyright (C) 2022 MCSManager <mcsmanager-dev@outlook.com>
|
|
|
|
/* eslint-disable no-undef */
|
|
const path = require("path");
|
|
const nodeExternals = require("webpack-node-externals");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./dist/app.js",
|
|
target: "node",
|
|
externalsPresets: { node: true }, // in order to ignore built-in modules like path, fs, etc.
|
|
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
|
|
output: {
|
|
filename: "app.js",
|
|
path: path.resolve(__dirname, "production")
|
|
}
|
|
};
|