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.
22 lines
434 B
22 lines
434 B
|
6 days ago
|
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()],
|
||
|
|
};
|