初始版本,目前线上可用
This commit is contained in:
22
backEnd/webpack.config.ts
Normal file
22
backEnd/webpack.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import path from "path";
|
||||
|
||||
module.exports = {
|
||||
entry: "./index.ts",
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: "ts-loader",
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
},
|
||||
output: {
|
||||
filename: "index.js",
|
||||
path: path.resolve(__dirname, "dist"),
|
||||
},
|
||||
target: "node",
|
||||
};
|
||||
Reference in New Issue
Block a user