forked from ember-learn/ember-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
80 lines (77 loc) · 2 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
babel: {
plugins: [ require.resolve('ember-auto-import/babel-plugin') ]
},
ifa: {
enabled: true,
inline: true,
},
fingerprint: {
// don't fingerprint images because we need to be able to access them dynamically
// see more info here: https://github.com/ef4/prember/issues/52
extensions: ['js', 'css', 'map'],
generateAssetMap: true,
fingerprintAssetMap: true,
},
prember: {
urls: [
'/',
'community',
'community/meetups',
'community/meetups/assets',
'community/meetups-getting-started',
'ember-community-survey-2019',
'ember-users',
'guidelines',
'learn',
'learn/examples',
'about/legal',
'logos',
'mascots',
'security',
'sponsors',
'teams',
'mascots',
'mascots/commission-sent',
'mascots/commission',
'mascots/faq',
'mascots/payment-sent',
'mascots/payment',
'releases',
'releases/release',
'releases/canary',
'releases/beta',
'releases/lts',
'ember-community-survey-2016',
'ember-community-survey-2017',
'ember-community-survey-2018',
'ember-community-survey-2019',
'ember-community-survey-2020',
'editions',
'editions/octane',
]
},
'ember-cli-uglify': { // TODO: remove once this issue is fixed https://github.com/ember-cli/ember-cli/issues/8075
uglify: {
compress: {
collapse_vars: false
}
}
},
emberHighCharts: {
includeHighCharts: true,
includeHighChartsMore: true,
includeModules: ['drilldown'],
},
'ember-leaflet': {
excludeJS: true
},
minifyCSS: {
options: { processImport: true }
},
});
return app.toTree();
};