You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
493 B

const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const { merge } = require("webpack-merge");
const nodeExternals = require("webpack-node-externals");
const path = require("path");
const common = require("./webpack.server.common.js");
module.exports = merge(common, {
devtool: "source-map",
node: { __dirname: false },
entry: [path.join(__dirname, "src/server/server.ts")],
externals: [nodeExternals()],
mode: "production",
plugins: [new CleanWebpackPlugin()],
});