server/core/webpack.js
John Molakvoæ (skjnldsv) eebcf89091
Cleanup sharing leftovers
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-11-05 19:03:44 +01:00

41 lines
789 B
JavaScript

const path = require('path')
const webpack = require('webpack')
module.exports = [
{
entry: {
login: path.join(__dirname, 'src/login.js'),
main: path.join(__dirname, 'src/main.js'),
maintenance: path.join(__dirname, 'src/maintenance.js'),
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'js/dist'),
jsonpFunction: 'webpackJsonpCore'
},
module: {
rules: [
{
test: /davclient/,
use: 'exports-loader?dav'
}
]
},
plugins: [
new webpack.ProvidePlugin({
'_': "underscore",
$: "jquery",
jQuery: "jquery"
})
]
},
{
entry: {
systemtags: path.resolve(__dirname, 'js/systemtags/merged-systemtags.js')
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'js/dist')
}
}
]