-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathd2.config.js
More file actions
30 lines (29 loc) · 895 Bytes
/
d2.config.js
File metadata and controls
30 lines (29 loc) · 895 Bytes
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
/** @type {import('@dhis2/cli-app-scripts').D2Config} */
const config = {
id: '4a5b87dc-015c-47db-ae77-f2f42e3bbb5a',
name: 'aggregate-data-entry',
type: 'app',
title: 'Data Entry',
minDHIS2Version: '2.39',
coreApp: true,
pwa: {
enabled: true,
caching: {
patternsToOmitFromAppShell: [
/\/api.*\/dataEntry\/dataValues/,
/\/api.*\/dataEntryForms/,
],
// // // ToDo: discuss whether these omits are necessary - seemed to not work without them on production build
// globsToOmitFromPrecache: [
// 'plugin.html',
// 'plugin*.js'
// ]
},
},
entryPoints: {
app: './src/app/app-wrapper.jsx',
plugin: './src/plugin-legacy-custom-forms/index.jsx',
},
direction: 'auto',
}
module.exports = config