forked from projectcaluma/ember-caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
36 lines (30 loc) · 1 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
"use strict";
const funnel = require("broccoli-funnel");
const EmberAddon = require("ember-cli/lib/broccoli/ember-addon");
const sass = require("sass");
module.exports = function (defaults) {
const app = new EmberAddon(defaults, {
sassOptions: { implementation: sass },
snippetPaths: ["tests/dummy/app/snippets"],
babel: {
plugins: ["@babel/plugin-proposal-object-rest-spread"],
},
"ember-cli-babel": {
includePolyfill: process.env.EMBER_ENV === "production",
},
emberApolloClient: {
keepGraphqlFileExtension: true,
},
});
app.import("node_modules/typeface-oxygen/index.css");
app.import("node_modules/typeface-oxygen-mono/index.css");
const oxygen = funnel("node_modules/typeface-oxygen/files", {
include: ["*.woff", "*.woff2"],
destDir: "/assets/files/",
});
const oxygenMono = funnel("node_modules/typeface-oxygen-mono/files", {
include: ["*.woff", "*.woff2"],
destDir: "/assets/files/",
});
return app.toTree([oxygen, oxygenMono]);
};