forked from ember-learn/deprecation-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
59 lines (50 loc) · 1.25 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
"use strict";
const EmberApp = require("ember-cli/lib/broccoli/ember-app");
module.exports = function(defaults) {
let prepend = "";
let fastlyDomain = process.env.FASTLY_DOMAIN;
if ("FASTLY_DOMAIN" in process.env) {
prepend = `https://${fastlyDomain}/`;
}
let app = new EmberApp(defaults, {
prember: {
urls: [
"/",
"/v3.x",
"/v2.x",
"/v1.x",
"/ember/v3.x",
"/ember/v2.x",
"/ember/v1.x",
"/ember-data/v2.x",
"/ember-data/v3.x",
"/ember-cli/v2.x",
]
},
fingerprint: {
prepend
},
"ember-prism": {
theme: "okaidia",
components: ["javascript", "handlebars", "markup-templating"],
plugins: ["line-numbers", "normalize-whitespace"]
},
"ember-bootstrap": {
bootstrapVersion: 4,
importBootstrapFont: false,
importBootstrapCSS: false
},
// TODO: remove once this issue is fixed https://github.com/ember-cli/ember-cli/issues/8075
'ember-cli-uglify': {
uglify: {
compress: {
collapse_vars: false
}
}
},
});
app.import("node_modules/semver-compare/index.js", {
using: [{ transformation: "cjs", as: "semver-compare" }]
});
return app.toTree();
};