aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/webpack.js
blob: 178bd28e7a5e5206a4c88ae3d6ce386646b17010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path')

module.exports = {
	entry: {
		dashboard: path.join(__dirname, 'src', 'dashboard'),
		'user-status-menu': path.join(__dirname, 'src', 'main-user-status-menu'),
	},
	output: {
		path: path.resolve(__dirname, './js'),
		publicPath: '/js/',
		filename: '[name].js?v=[chunkhash]',
		jsonpFunction: 'webpackJsonpUserStatus',
	},
	optimization: {
		splitChunks: {
			automaticNameDelimiter: '-',
		},
	},
}