-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
39 lines (34 loc) · 1015 Bytes
/
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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
const customBuildConfig = {
// Add options here
'ember-simple-auth': {
useSessionSetupMethod: true,
},
'ember-test-selectors': {
strip: false,
},
'@appuniversum/ember-appuniversum': {
dutchDatePickerLocalization: true,
disableWormholeElement: true,
},
'@embroider/macros': {
setOwnConfig: {
controle: process.env.CONTROLE === 'true',
},
},
};
let app = new EmberApp(defaults, customBuildConfig);
// Uncomment this if you want a "classic build"
// return app.toTree();
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
// splitAtRoutes: ['route.name'], // can also be a RegExp
});
};