-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
48 lines (43 loc) · 1.23 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
'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',
},
},
sassOptions: {
includePaths: ['node_modules/@appuniversum/ember-appuniversum'],
},
babel: {
plugins: [
require.resolve('ember-concurrency/async-arrow-task-transform'),
],
},
};
// console.log(defaults);
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
});
};