-
Notifications
You must be signed in to change notification settings - Fork 25
/
ember-cli-build.js
63 lines (59 loc) · 1.75 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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const SubresourceIntegrityPlugin = require('webpack-subresource-integrity-embroider');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
buildInfoOptions: {
metaTemplate: 'version={SEMVER}',
},
'ember-bootstrap': {
importBootstrapCSS: false,
bootstrapVersion: 4,
importBootstrapFont: false,
},
'ember-cli-babel': {
enableTypeScriptTransform: true,
},
autoprefixer: {
browsers: ['last 2 ios version'],
cascade: false,
sourcemap: true,
},
sassOptions: {
sourceMapEmbed: true,
includePaths: ['node_modules'],
},
});
app.import('node_modules/open-iconic/font/fonts/open-iconic.ttf');
app.import('node_modules/open-iconic/font/fonts/open-iconic.woff');
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
// `ember-cli-deprecation-workflow` does not support `staticEmberSource = true`
// yet. See https://github.com/mixonic/ember-cli-deprecation-workflow/issues/156
// for details.
staticEmberSource: false,
skipBabel: [
{
package: 'qunit',
},
],
packagerOptions: {
webpackConfig: {
devtool: 'source-map',
plugins: [new SubresourceIntegrityPlugin()],
resolve: {
fallback: {
// SJCL supports node.js as well using node's crypto module.
// We don't want it to be included in the bundle.
crypto: false,
},
},
},
},
});
};