decide.nolog.cz/ember-cli-build.js

71 lines
2 KiB
JavaScript
Raw Normal View History

'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
module.exports = function (defaults) {
2023-10-17 11:38:49 +02:00
const app = new EmberApp(defaults, {
2019-04-24 21:43:02 +02:00
autoImport: {
forbidEval: true,
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
},
buildInfoOptions: {
metaTemplate: 'version={SEMVER}',
2016-05-24 01:06:47 +02:00
},
'ember-bootstrap': {
importBootstrapCSS: false,
bootstrapVersion: 4,
importBootstrapFont: false,
whitelist: [
'bs-alert',
'bs-button',
'bs-button-group',
'bs-form',
'bs-modal',
],
},
'ember-cli-babel': {
enableTypeScriptTransform: true,
},
'ember-composable-helpers': {
only: ['array', 'pick'],
},
'ember-math-helpers': {
only: ['lte', 'sub'],
},
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.
app.import('node_modules/open-iconic/font/fonts/open-iconic.ttf');
app.import('node_modules/open-iconic/font/fonts/open-iconic.woff');
return app.toTree();
2015-11-20 00:17:15 +01:00
};