2020-06-02 13:48:37 +03:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
2020-08-18 11:54:46 +03:00
|
|
|
'dashboard': path.join(__dirname, 'src', 'dashboard'),
|
2020-06-02 13:48:37 +03:00
|
|
|
'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: '-',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|