2017-07-29 15:00:11 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-03-18 13:01:50 +01:00
|
|
|
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
2015-11-20 00:17:15 +01:00
|
|
|
|
2017-07-29 15:00:11 +02:00
|
|
|
module.exports = function(defaults) {
|
|
|
|
let app = new EmberApp(defaults, {
|
2019-04-24 21:43:02 +02:00
|
|
|
autoImport: {
|
|
|
|
forbidEval: true,
|
2019-04-26 09:50:05 +02:00
|
|
|
webpack: {
|
|
|
|
externals: {
|
|
|
|
// sjcl requires node's cryto library, which isn't needed
|
|
|
|
// in Browser but causes webpack to bundle a portable version
|
|
|
|
// which increases the build size by an inacceptable amount
|
|
|
|
crypto: "null",
|
|
|
|
},
|
|
|
|
},
|
2019-04-24 21:43:02 +02:00
|
|
|
},
|
2015-11-20 00:17:15 +01:00
|
|
|
'buildInfoOptions': {
|
|
|
|
'metaTemplate': 'version={SEMVER}'
|
2016-05-24 01:06:47 +02:00
|
|
|
},
|
|
|
|
'ember-bootstrap': {
|
2018-10-28 22:54:14 +01:00
|
|
|
importBootstrapCSS: false,
|
2019-06-07 11:22:13 +02:00
|
|
|
'bootstrapVersion': 4,
|
|
|
|
'importBootstrapFont': false,
|
2019-01-03 00:16:19 +01:00
|
|
|
whitelist: ['bs-alert', 'bs-button', 'bs-button-group', 'bs-form', 'bs-modal'],
|
2017-07-29 15:00:11 +02:00
|
|
|
},
|
|
|
|
'ember-cli-babel': {
|
|
|
|
includePolyfill: true
|
2018-12-30 09:06:40 +01:00
|
|
|
},
|
|
|
|
'ember-composable-helpers': {
|
2023-09-30 11:15:50 +02:00
|
|
|
only: ['array', 'object-at', 'pick'],
|
2019-02-24 01:04:26 +01:00
|
|
|
},
|
|
|
|
'ember-math-helpers': {
|
2019-04-20 23:29:59 +02:00
|
|
|
only: ['lte', 'sub'],
|
2019-02-24 01:04:26 +01:00
|
|
|
},
|
2019-06-07 11:22:13 +02:00
|
|
|
autoprefixer: {
|
|
|
|
browsers: ['last 2 ios version'],
|
|
|
|
cascade: false,
|
|
|
|
sourcemap: true
|
|
|
|
},
|
|
|
|
sassOptions: {
|
|
|
|
sourceMapEmbed: true,
|
|
|
|
includePaths: ['node_modules'],
|
|
|
|
},
|
2015-11-20 00:17:15 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
// Use `app.import` to add additional libraries to the generated
|
|
|
|
// output files.
|
|
|
|
//
|
|
|
|
// If you need to use different assets in different
|
|
|
|
// environments, specify an object as the first parameter. That
|
|
|
|
// object's keys should be the environment name and the values
|
|
|
|
// should be the asset to use in that environment.
|
|
|
|
//
|
|
|
|
// If the library that you are including contains AMD or ES6
|
|
|
|
// modules that you would like to import into your application
|
|
|
|
// please specify an object with the list of modules as keys
|
|
|
|
// along with the exports of each module as its value.
|
|
|
|
|
2019-06-07 11:22:13 +02:00
|
|
|
app.import('node_modules/open-iconic/font/fonts/open-iconic.ttf');
|
|
|
|
app.import('node_modules/open-iconic/font/fonts/open-iconic.woff');
|
|
|
|
|
2018-12-28 23:11:48 +01:00
|
|
|
return app.toTree();
|
2015-11-20 00:17:15 +01:00
|
|
|
};
|