2020-08-07 15:49:13 +03:00
|
|
|
const { merge } = require('webpack-merge')
|
|
|
|
const path = require('path')
|
|
|
|
const webpack = require('webpack')
|
|
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
|
|
|
2020-09-02 12:14:36 +03:00
|
|
|
if (webpackConfig.entry && webpackConfig.entry.main) {
|
2020-10-07 20:06:22 +03:00
|
|
|
delete webpackConfig.entry.main
|
2020-09-02 12:14:36 +03:00
|
|
|
}
|
|
|
|
|
2020-08-07 15:49:13 +03:00
|
|
|
const config = {
|
2020-10-07 20:06:22 +03:00
|
|
|
entry: {
|
2020-08-07 15:49:13 +03:00
|
|
|
personalSettings: path.join(__dirname, 'src', 'personalSettings.js'),
|
|
|
|
adminSettings: path.join(__dirname, 'src', 'adminSettings.js'),
|
|
|
|
dashboard: path.join(__dirname, 'src', 'dashboard.js'),
|
2020-10-07 20:06:22 +03:00
|
|
|
},
|
2020-08-07 15:49:13 +03:00
|
|
|
}
|
|
|
|
|
2020-09-02 12:14:36 +03:00
|
|
|
module.exports = merge(config, webpackConfig)
|