-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
executable file
·35 lines (34 loc) · 1.3 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const path = require("path");
module.exports = {
entry: {
main: "./src/ts/main.ts",
register: "./src/ts/pages/register/script.ts",
login: "./src/ts/pages/login/script.ts",
profile: "./src/ts/pages/profile/script.ts",
index: "./src/ts/pages/index/script.ts",
history: "./src/ts/pages/history/script.ts",
problems: "./src/ts/pages/problems/script.ts",
pvp: "./src/ts/pages/pvp/script.ts",
administrator_group_activities: "./src/ts/pages/administrator/groupactivities/script.ts",
administrator_activities: "./src/ts/pages/administrator/activities/script.ts",
administrator_users: "./src/ts/pages/administrator/users/script.ts",
administrator_classes: "./src/ts/pages/administrator/classes/script.ts",
administrator_classes_view: "./src/ts/pages/administrator/classes/view/script.ts",
administrator_classes_challenges: "./src/ts/pages/administrator/classes/challenges/script.ts"
},
module: {
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: "/node_modules/"
},
]
},
resolve: {
extensions: [".tsx", ".ts", ".js"]
},
output: {
path: path.resolve(__dirname, "public", "dist", "js"),
}
};