-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.config.js
46 lines (43 loc) · 1.11 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
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.services')
]
const extraConfig = {
plugins: [
new VersionPlugin({
packages: [
'cozy-bar',
'cozy-client',
'cozy-device-helper',
'cozy-doctypes',
'cozy-flags',
'cozy-harvest-lib',
'cozy-intent',
'cozy-interapp',
'cozy-keys-lib',
'cozy-minilog',
'cozy-notifications',
'cozy-realtime',
'cozy-sharing',
'cozy-ui'
]
})
],
resolve: {
alias: {
handlebars: 'handlebars/dist/handlebars.min.js',
'react-pdf$': 'react-pdf/dist/esm/entry.webpack'
}
},
module: {
// mjml-core/lib/helpers/mjmlconfig and encoding/lib/iconv-loader use
// expressions inside require. We do not need the functionality provided
// by the dynamic require
exprContextRegExp: /$^/,
exprContextCritical: false
}
}
config.push(extraConfig)
module.exports = config