nextcloud/apps/user_status/webpack.js

20 lines
431 B
JavaScript

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: '-',
},
},
}