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:
|
|
|
|
{
|
|
|
|
accountUser: "./src/accountUser.js",
|
|
|
|
connection: "./src/connection.js",
|
|
|
|
deconnection: "./src/deconnection.js",
|
|
|
|
deleteValidation: "./src/deleteValidation.js",
|
2020-10-20 11:01:52 +02:00
|
|
|
groupElement: "./src/groupElement.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
homeManager: "./src/homeManager.js",
|
|
|
|
homeUser: "./src/homeUser.js",
|
|
|
|
index: "./src/index.js",
|
|
|
|
loginLink: "./src/loginLink.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",
|
|
|
|
newLoginValidation: "./src/newLoginValidation.js",
|
2020-09-07 18:19:45 +02:00
|
|
|
paymentPage: "./src/paymentPage.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
polyfill: "babel-polyfill",
|
2022-03-01 17:40:41 +01:00
|
|
|
quiz: "./src/quiz.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
subscribe: "./src/subscribe.js",
|
|
|
|
subscribeValidation: "./src/subscribeValidation.js",
|
|
|
|
unsubscribe: "./src/unsubscribe.js"
|
|
|
|
},
|
|
|
|
output:
|
|
|
|
{
|
2021-09-03 13:10:41 +02:00
|
|
|
path: path.resolve(__dirname, "public"),
|
|
|
|
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:
|
|
|
|
{
|
2021-09-03 13:10:41 +02:00
|
|
|
static: path.resolve(__dirname, "./public")
|
2022-01-28 17:37:19 +01:00
|
|
|
},
|
2020-08-07 12:23:59 +02:00
|
|
|
};
|