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.
23 lines
494 B
23 lines
494 B
|
6 years ago
|
const path = require("path");
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
module: {
|
||
|
|
rules: [
|
||
|
|
{
|
||
|
|
exclude: [/node_modules/],
|
||
|
|
test: /\.ts$/,
|
||
|
|
loader: "ts-loader",
|
||
|
|
options: { configFile: "tsconfig.server.json" },
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
output: {
|
||
|
|
filename: "server.js",
|
||
|
|
path: path.resolve(__dirname, "dist", "server"),
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
extensions: [".ts", ".js"],
|
||
|
|
},
|
||
|
|
target: "node",
|
||
|
|
};
|