2020-08-07 12:23:59 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
2021-02-04 16:31:09 +01:00
|
|
|
mode: "development",
|
2020-08-07 12:23:59 +02:00
|
|
|
entry:
|
|
|
|
{
|
|
|
|
connection: "./src/connection.js",
|
|
|
|
deconnection: "./src/deconnection.js",
|
|
|
|
homeManager: "./src/homeManager.js",
|
2020-10-12 17:51:35 +02:00
|
|
|
manageGroups: "./src/manageGroups.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
manageQuestionnaires: "./src/manageQuestionnaires.js",
|
|
|
|
manageUsers: "./src/manageUsers.js",
|
2022-03-14 18:17:54 +01:00
|
|
|
polyfill: "babel-polyfill"
|
2020-08-07 12:23:59 +02:00
|
|
|
},
|
|
|
|
output:
|
|
|
|
{
|
2022-03-14 18:17:54 +01:00
|
|
|
path: path.resolve(__dirname, "www"),
|
2021-09-03 13:10:41 +02:00
|
|
|
filename: "JS/[name].app.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
},
|
|
|
|
module:
|
|
|
|
{
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: "babel-loader",
|
|
|
|
options: {
|
|
|
|
presets: ["@babel/preset-env"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
devServer:
|
|
|
|
{
|
2022-03-14 18:17:54 +01:00
|
|
|
static: path.resolve(__dirname, "./www")
|
2022-01-28 17:37:19 +01:00
|
|
|
},
|
2020-08-07 12:23:59 +02:00
|
|
|
};
|