forked from julien-nc/cospend-nc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.js
22 lines (18 loc) · 915 Bytes
/
webpack.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const path = require('path')
const webpackConfig = require('@nextcloud/webpack-vue-config')
const buildMode = process.env.NODE_ENV
const isDev = buildMode === 'development'
webpackConfig.devtool = isDev ? 'cheap-source-map' : 'source-map'
// webpackConfig.bail = false
webpackConfig.stats = {
colors: true,
modules: false,
}
webpackConfig.entry = {
adminSettings: { import: path.join(__dirname, 'src', 'adminSettings.js'), filename: 'cospend-adminSettings.js' },
main: { import: path.join(__dirname, 'src', 'main.js'), filename: 'cospend-main.js' },
login: { import: path.join(__dirname, 'src', 'login.js'), filename: 'cospend-login.js' },
sharePassword: { import: path.join(__dirname, 'src', 'sharePassword.js'), filename: 'cospend-sharePassword.js' },
dashboard: { import: path.join(__dirname, 'src', 'dashboard.js'), filename: 'cospend-dashboard.js' },
}
module.exports = webpackConfig