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

module.exports = {
	entry: {
		comments: path.join(__dirname, 'src', 'comments.js'),
		'comments-app': path.join(__dirname, 'src', 'comments-app.js'),
		'comments-tab': path.join(__dirname, 'src', 'comments-tab.js'),
	},
	output: {
		path: path.resolve(__dirname, './js'),
		publicPath: '/js/',
		filename: '[name].js',
		jsonpFunction: 'webpackJsonpComments',
	},
	externals: {
		jquery: 'jQuery',
	},
}