-
Notifications
You must be signed in to change notification settings - Fork 37
/
webpack.config.js
37 lines (36 loc) · 1.34 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
37
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'],
snowflakes: ['./src/frontend/js/entrypoint/snowflakes.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 })],
}