forked from FAForever/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
27 lines (26 loc) · 1.06 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
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
const path = require("path");
module.exports = {
mode: "production",
entry: {
"clans": ["./src/frontend/js/entrypoint/clans.js"],
"content-creators": ["./src/frontend/js/entrypoint/content-creators.js"],
"donation": ["./src/frontend/js/entrypoint/donation.js"],
"faf-teams": ["./src/frontend/js/entrypoint/faf-teams.js"],
"getClans": ["./src/frontend/js/entrypoint/getClans.js"],
"leaderboards": ["./src/frontend/js/entrypoint/leaderboards.js"],
"navigation": ["./src/frontend/js/entrypoint/navigation.js"],
"newshub": ["./src/frontend/js/entrypoint/newshub.js"],
"play": ["./src/frontend/js/entrypoint/play.js"],
"report": ["./src/frontend/js/entrypoint/report.js"],
},
output: {
filename: "[name].[contenthash].js",
path: path.resolve(__dirname, "dist/js"),
publicPath: "/dist/js",
clean: true,
},
plugins: [
new WebpackManifestPlugin({ useEntryKeys: true }),
],
};