WikiLerni/front/webpack.config.js

52 lines
1.3 KiB
JavaScript
Raw Normal View History

const path = require('path');
module.exports =
{
mode: "development",
entry:
{
accountUser: "./src/accountUser.js",
connection: "./src/connection.js",
deconnection: "./src/deconnection.js",
deleteValidation: "./src/deleteValidation.js",
groupElement: "./src/groupElement.js",
homeManager: "./src/homeManager.js",
homeUser: "./src/homeUser.js",
index: "./src/index.js",
loginLink: "./src/loginLink.js",
manageGroups: "./src/manageGroups.js",
manageQuestionnaires: "./src/manageQuestionnaires.js",
manageUsers: "./src/manageUsers.js",
newLoginValidation: "./src/newLoginValidation.js",
paymentPage: "./src/paymentPage.js",
polyfill: "babel-polyfill",
quiz: "./src/quiz.js",
subscribe: "./src/subscribe.js",
subscribeValidation: "./src/subscribeValidation.js",
unsubscribe: "./src/unsubscribe.js"
},
output:
{
path: path.resolve(__dirname, "public"),
filename: "JS/[name].app.js",
},
module:
{
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"]
}
}
}
]
},
devServer:
{
static: path.resolve(__dirname, "./public")
},
};