2021-03-31 13:15:40 +03:00
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2016 John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
*
|
|
|
|
* @author John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
* @author Roeland Jago Douma <roeland@famdouma.nl>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-05-24 15:08:39 +03:00
|
|
|
const path = require('path')
|
2019-02-15 15:50:12 +03:00
|
|
|
|
|
|
|
module.exports = {
|
2020-10-04 16:33:17 +03:00
|
|
|
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'),
|
|
|
|
},
|
2019-02-15 15:50:12 +03:00
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/js/',
|
2020-10-04 16:33:17 +03:00
|
|
|
filename: '[name].js',
|
|
|
|
jsonpFunction: 'webpackJsonpComments',
|
2019-02-15 15:50:12 +03:00
|
|
|
},
|
|
|
|
externals: {
|
2020-10-04 16:33:17 +03:00
|
|
|
jquery: 'jQuery',
|
|
|
|
},
|
2019-05-24 15:08:39 +03:00
|
|
|
}
|