forked from ilios/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
63 lines (58 loc) · 1.62 KB
/
ember-cli-build.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'use strict';
/* eslint camelcase: 0 */
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const broccoliAssetRevDefaults = require('broccoli-asset-rev/lib/default-options');
module.exports = function (defaults) {
const env = EmberApp.env() || 'development';
const isTestBuild = env === 'test';
const app = new EmberApp(defaults, {
fingerprint: {
extensions: broccoliAssetRevDefaults.extensions.concat(['webmanifest', 'svg']),
},
sourcemaps: {
enabled: true,
},
hinting: isTestBuild,
babel: {
plugins: [require('ember-auto-import/babel-plugin')],
},
'ember-cli-image-transformer': {
images: [
{
inputFilename: 'lib/images/sunburst.svg',
outputFileName: 'sunburst-white-background',
background: { r: 255, g: 255, b: 255, alpha: 1 },
convertTo: 'png',
sizes: [48, 96, 180, 192],
},
{
inputFilename: 'lib/images/sunburst.svg',
outputFileName: 'sunburst-transparent',
convertTo: 'png',
sizes: [16, 32, 48, 96, 150, 512],
},
],
},
'ember-cli-qunit': {
useLintTree: false,
},
'ember-service-worker': {
immediateClaim: true,
versionStrategy: 'every-build',
},
'esw-cache-first': {
version: '4',
patterns: ['https://fonts.gstatic.com/(.+)'],
},
autoImport: {
insertScriptsAt: 'auto-import-scripts',
},
'ember-fetch': {
preferNative: true,
},
'ember-simple-auth': {
useSessionSetupMethod: true, //can be removed in ESA v5.x
},
});
return app.toTree();
};