forked from ember-learn/ember-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
111 lines (100 loc) · 2.6 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
'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')],
},
'ember-composable-helpers': {
only: ['filter-by', 'reject-by', 'sort-by'],
},
emberHighCharts: {
includeHighCharts: true,
includeHighChartsMore: true,
},
'ember-leaflet': {
excludeJS: 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,
},
ifa: {
enabled: true,
inline: true,
},
minifyCSS: {
options: { processImport: true },
},
prember: {
urls: [
'/',
'about/legal',
'browser-support',
'community',
'community/black-lives-matter',
'community/meetups',
'community/meetups/assets',
'community/meetups-getting-started',
'editions',
'editions/octane',
'ember-users',
'guidelines',
'learn',
'learn/examples',
'logos',
'mascots',
'mascots/commission',
'mascots/commission-sent',
'mascots/faq',
'mascots/payment',
'mascots/payment-sent',
'releases',
'releases/beta',
'releases/canary',
'releases/lts',
'releases/release',
'security',
'sponsors',
'survey/2016',
'survey/2017',
'survey/2018',
'survey/2019',
'survey/2020',
'survey/2021',
'teams',
],
},
'responsive-image': {
images: [
{
include: 'images/team/*',
widths: [100, 200],
lqip: {
type: 'blurhash',
},
removeSource: true,
// don't scale images, just copy as-is in dev mode, to not slow down the build
justCopy: process.env.EMBER_ENV !== 'production',
},
{
include: 'images/tomsters/**/*.png',
widths: [
320, // mobile
640, // mobile 2x
750, // iPhone 2x
242, // desktop
484, // desktop 2x
],
removeSource: false,
// don't scale images, just copy as-is in dev mode, to not slow down the build
justCopy: process.env.EMBER_ENV !== 'production',
},
],
},
});
return app.toTree();
};