-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.config.js
47 lines (43 loc) · 1.09 KB
/
app.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const path = require('path')
const cozyNotificationsWebpackConfig = require('cozy-notifications/dist/webpack/config')
const VersionPlugin = require('cozy-scripts/plugins/VersionPlugin')
const config = [
require('cozy-scripts/config/webpack.bundle.default.js'),
require('cozy-scripts/config/webpack.config.css-modules'),
require('./app.config.babel-loader-leaflet'),
{
plugins: [
new VersionPlugin({
packages: [
'cozy-bar',
'cozy-client',
'cozy-device-helper',
'cozy-flags',
'cozy-harvest-lib',
'cozy-intent',
'cozy-keys-lib',
'cozy-logger',
'cozy-minilog',
'cozy-notifications',
'cozy-realtime',
'cozy-ui',
'cozy-ach',
'cozy-jobs-cli',
'cozy-scripts'
]
})
],
resolve: {
alias: {
'react-pdf$': 'react-pdf/dist/esm/entry.webpack',
root: path.resolve(__dirname)
}
}
}
]
config.push({
multiple: {
services: cozyNotificationsWebpackConfig.default
}
})
module.exports = config