2020-06-02 13:48:37 +03:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2020-10-01 23:10:10 +03:00
|
|
|
dashboard: path.join(__dirname, 'src', 'dashboard'),
|
|
|
|
'user-status-menu': path.join(__dirname, 'src', 'main-user-status-menu'),
|
2020-06-02 13:48:37 +03:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, './js'),
|
|
|
|
publicPath: '/js/',
|
|
|
|
filename: '[name].js?v=[chunkhash]',
|
2020-10-01 23:10:10 +03:00
|
|
|
jsonpFunction: 'webpackJsonpUserStatus',
|
2020-06-02 13:48:37 +03:00
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
splitChunks: {
|
|
|
|
automaticNameDelimiter: '-',
|
2020-10-01 23:10:10 +03:00
|
|
|
},
|
|
|
|
},
|
2020-06-02 13:48:37 +03:00
|
|
|
}
|