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
|
|
|
}
|