2020-08-07 12:23:59 +02:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
2020-08-17 12:08:08 +02:00
|
|
|
mode: "development",
|
2020-08-07 12:23:59 +02:00
|
|
|
devtool: "inline-source-map",
|
|
|
|
entry:
|
|
|
|
{
|
|
|
|
accountUser: "./src/accountUser.js",
|
|
|
|
connection: "./src/connection.js",
|
|
|
|
deconnection: "./src/deconnection.js",
|
|
|
|
deleteValidation: "./src/deleteValidation.js",
|
|
|
|
homeManager: "./src/homeManager.js",
|
|
|
|
homeUser: "./src/homeUser.js",
|
|
|
|
index: "./src/index.js",
|
|
|
|
loginLink: "./src/loginLink.js",
|
|
|
|
manageQuestionnaires: "./src/manageQuestionnaires.js",
|
|
|
|
manageUsers: "./src/manageUsers.js",
|
|
|
|
newLoginValidation: "./src/newLoginValidation.js",
|
|
|
|
polyfill: "babel-polyfill",
|
|
|
|
questionnaire: "./src/questionnaire.js",
|
|
|
|
subscribe: "./src/subscribe.js",
|
|
|
|
subscribeValidation: "./src/subscribeValidation.js",
|
|
|
|
unsubscribe: "./src/unsubscribe.js"
|
|
|
|
},
|
|
|
|
output:
|
|
|
|
{
|
2020-08-17 12:08:08 +02:00
|
|
|
filename: "./JS/[name].app.js",
|
2020-08-07 12:23:59 +02:00
|
|
|
path: path.resolve(__dirname, "public")
|
|
|
|
},
|
|
|
|
module:
|
|
|
|
{
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: "babel-loader",
|
|
|
|
options: {
|
|
|
|
presets: ["@babel/preset-env"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
devServer:
|
|
|
|
{
|
|
|
|
contentBase: path.resolve(__dirname, "./public")
|
|
|
|
}
|
|
|
|
};
|