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.
 

21 lines
434 B

const path = require("path");
const nodeExternals = require("webpack-node-externals");
module.exports = {
entry: "./src/index.js",
mode: "production",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bundle.js",
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: "babel-loader",
},
],
},
target: "node",
externals: [nodeExternals()],
};