forked from ember-learn/ember-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
88 lines (83 loc) · 2.25 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
81
82
83
84
85
86
87
88
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const broccoliAssetRevDefaults = require('broccoli-asset-rev/lib/default-options');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
ifa: {
enabled: true,
inline: true,
},
fingerprint: {
extensions: broccoliAssetRevDefaults.extensions.concat(['svg']),
generateAssetMap: true,
fingerprintAssetMap: true,
exclude: [
'images/layers-2x.png',
'images/layers.png',
'images/marker-icon-2x.png',
'images/marker-icon.png',
'images/marker-shadow.png'
]
},
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',
'team',
'mascots',
'mascots/commission-sent',
'mascots/commission',
'mascots/faq',
'mascots/payment-sent',
'mascots/payment',
'statusboard',
'releases',
'releases/release',
'releases/canary',
'releases/beta',
'ember-community-survey-2016',
'ember-community-survey-2017',
'ember-community-survey-2018',
'ember-community-survey-2019',
'editions',
'editions/octane',
]
},
'ember-bootstrap': {
bootstrapVersion: 4,
importBootstrapFont: false,
importBootstrapCSS: false
},
'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'],
},
});
app.import("node_modules/highlightjs/highlight.pack.js");
app.import('vendor/shims/highlightjs.js');
app.import("node_modules/markdown-it/dist/markdown-it.js", {
using: [{ transformation: "amd", as: "markdown-it" }]
});
return app.toTree();
};