server/settings/webpack.js
Julius Härtl 99e7898448
Add cachebuster to chunks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-07-05 11:49:59 +02:00

19 lines
517 B
JavaScript

const path = require('path')
module.exports = {
entry: {
'settings-apps-users-management': path.join(__dirname, 'src', 'main-apps-users-management'),
'settings-admin-security': path.join(__dirname, 'src', 'main-admin-security'),
'settings-personal-security': path.join(__dirname, 'src', 'main-personal-security')
},
output: {
path: path.resolve(__dirname, './js'),
publicPath: '/',
filename: 'vue-[name].js?v=[chunkhash]'
},
optimization: {
splitChunks: {
automaticNameDelimiter: '-',
}
}
}