You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
425 B
JavaScript
29 lines
425 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = [
|
|
{
|
|
name: "front-end-components",
|
|
entry: {
|
|
bundle: "./src/front/index.ts",
|
|
},
|
|
|
|
output: {
|
|
filename: "[name].js",
|
|
path: path.resolve(__dirname, "public/dist"),
|
|
},
|
|
|
|
mode: "production",
|
|
devtool: "source-map",
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.js$/,
|
|
exclude: [/node_modules/],
|
|
use: [{ loader: "babel-loader" }],
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|