forked from FAForever/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (35 loc) · 1.26 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
36
const { WebpackManifestPlugin } = require('webpack-manifest-plugin')
const path = require('path')
module.exports = {
mode: 'production',
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
}
]
},
entry: {
clan: ['./src/frontend/js/entrypoint/clan.js'],
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'],
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'],
'clan-invite': ['./src/frontend/js/entrypoint/clan-invite.js']
},
output: {
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'dist/js'),
publicPath: '/dist/js',
clean: true
},
plugins: [
new WebpackManifestPlugin({ useEntryKeys: true })
]
}