-
Notifications
You must be signed in to change notification settings - Fork 1
/
ember-cli-build.js
73 lines (62 loc) · 1.41 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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
let buildOptions = {
babel: {
plugins: ['@babel/plugin-proposal-object-rest-spread']
},
storeConfigInMeta: false,
fingerprint: {
enabled: false
},
outputPaths: {
app: {
css: {
'app': '/assets/id.css'
},
js: '/assets/id.js',
}
},
'ember-composable-helpers': {
only: [
'pipe',
'pipe-action',
'queue',
'dec',
'toggle',
'contains',
'array',
'repeat',
'range',
'group-by',
'sort-by',
'map-by',
'reduce',
'filter-by'
]
},
svgJar: {
sourceDirs: [
'node_modules/@primer/octicons/build/svg',
],
strategy: 'symbol'
},
autoImport: {
alias: {
'countries-en': 'i18n-iso-countries/langs/en.json',
'fuse': 'fuse.js/dist/fuse.js',
'moment-duration-format': 'moment-duration-format/lib/moment-duration-format.js',
'filesize': 'filesize/lib/filesize.js'
}
}
};
if ( process.env.EMBER_ENV === 'development') {
buildOptions.tests = false;
buildOptions.babel.sourceMaps = 'inline';
buildOptions.autoprefixer = {
enabled: false
}
}
let app = new EmberApp(defaults, buildOptions);
return app.toTree();
};